-
- Downloads
bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant...
bpo-33721: Make some os.path functions and pathlib.Path methods be tolerant to invalid paths. (#7695) 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 unrepresentative at the OS level.
Showing
- Doc/library/os.path.rst 8 additions, 0 deletionsDoc/library/os.path.rst
- Doc/library/pathlib.rst 11 additions, 1 deletionDoc/library/pathlib.rst
- Doc/whatsnew/3.8.rst 25 additions, 0 deletionsDoc/whatsnew/3.8.rst
- Lib/genericpath.py 3 additions, 3 deletionsLib/genericpath.py
- Lib/macpath.py 1 addition, 1 deletionLib/macpath.py
- Lib/ntpath.py 3 additions, 3 deletionsLib/ntpath.py
- Lib/pathlib.py 24 additions, 0 deletionsLib/pathlib.py
- Lib/posixpath.py 4 additions, 4 deletionsLib/posixpath.py
- Lib/test/test_genericpath.py 30 additions, 8 deletionsLib/test/test_genericpath.py
- Lib/test/test_pathlib.py 28 additions, 1 deletionLib/test/test_pathlib.py
- Lib/test/test_posixpath.py 12 additions, 0 deletionsLib/test/test_posixpath.py
- Lib/test/test_site.py 5 additions, 7 deletionsLib/test/test_site.py
- Misc/NEWS.d/next/Library/2018-06-14-17-53-30.bpo-33721.8i9_9A.rst 12 additions, 0 deletions...S.d/next/Library/2018-06-14-17-53-30.bpo-33721.8i9_9A.rst
- Modules/clinic/posixmodule.c.h 1 addition, 22 deletionsModules/clinic/posixmodule.c.h
- Modules/posixmodule.c 14 additions, 4 deletionsModules/posixmodule.c
Loading
Please register or sign in to comment