-
- Downloads
gh-92550 - Fix regression in `pathlib.Path.rglob()` (GH-92583)
We could try to remedy this by taking a slice, but we then run into an issue where the empty string will match altsep on POSIX. That rabbit hole could keep getting deeper. A proper fix for the original issue involves making pathlib's path normalisation more configurable - in this case we want to retain trailing slashes, but in other we might want to preserve `./` prefixes, or elide `../` segments when we're sure we won't encounter symlinks. This reverts commit ea2f5bcd.
Showing
- Doc/library/pathlib.rst 0 additions, 6 deletionsDoc/library/pathlib.rst
- Doc/whatsnew/3.11.rst 0 additions, 9 deletionsDoc/whatsnew/3.11.rst
- Lib/pathlib.py 0 additions, 6 deletionsLib/pathlib.py
- Lib/test/test_pathlib.py 0 additions, 17 deletionsLib/test/test_pathlib.py
- Misc/NEWS.d/next/Library/2022-05-09-23-36-19.gh-issue-92550.qZ4AhU.rst 2 additions, 0 deletions...ext/Library/2022-05-09-23-36-19.gh-issue-92550.qZ4AhU.rst
Loading
Please register or sign in to comment