Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jun 14, 2018

Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(), os.path.isfile(), os.path.islink(), and os.path.ismount() now return False instead of raising ValueError or its subclasses UnicodeEncodeError and UnicodeDecodeError for paths that contain characters or bytes unrepresntative at the OS level.

https://bugs.python.org/issue33721

Such functions as os.path.exists(), os.path.lexists(), os.path.isdir(),
os.path.isfile(), os.path.islink(), and os.path.ismount() now return False
instead of raising ValueError or its subclasses UnicodeEncodeError
and UnicodeDecodeError for paths that contain characters or bytes
unrepresntative at the OS level.
@serhiy-storchaka
Copy link
Member Author

Thank you for your review @vadmium!

@serhiy-storchaka serhiy-storchaka changed the title bpo-33721: Make some os.path functions be tolerant to invalid paths. bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant to invalid paths. Aug 19, 2018
@serhiy-storchaka serhiy-storchaka merged commit 0185f34 into python:master Sep 18, 2018
@bedevere-bot
Copy link

@serhiy-storchaka: Please replace # with GH- in the commit message next time. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-feature A feature request or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants