This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients domdfcoding2, eryksun, gaborjbernat, paul.moore, steve.dower, tim.golden, zach.ware
Date 2021-01-07.17:30:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610040644.84.0.270003892808.issue42855@roundup.psfhosted.org>
In-reply-to
Content
An alternative would be to add a "strict" parameter that defaults to False. In non-strict mode, map all OSError exceptions to a False return value. In strict mode, use _ignore_error(e) to determine whether to return False or propagate the exception. The question then is whether to add ERROR_INVALID_NAME (123) to _IGNORED_WINERRORS since the error means the name can never exist. On the other hand, ERROR_ACCESS_DENIED due to a permission error would be propagated in strict mode -- because the path's existence is unknown.
History
Date User Action Args
2021-01-07 17:30:44eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, gaborjbernat, domdfcoding2
2021-01-07 17:30:44eryksunsetmessageid: <1610040644.84.0.270003892808.issue42855@roundup.psfhosted.org>
2021-01-07 17:30:44eryksunlinkissue42855 messages
2021-01-07 17:30:44eryksuncreate