[issue35306] OSError [WinError 123] when testing if pathlib.Path('*') (asterisks) exists

Steve Dower report at bugs.python.org
Tue Jan 15 13:40:28 EST 2019


Steve Dower <steve.dower at python.org> added the comment:

Pathlib doesn't necessarily directly follow os on its error handling - adding Antoine for comment.

Passing strict=False to resolve() should be able to handle an invalid name like that. If not, I propose that we change it so that it does.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35306>
_______________________________________


More information about the Python-bugs-list mailing list