]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-104102: Optimize `pathlib.Path.glob()` handling of `../` pattern segments (GH...
authorBarney Gale <barney.gale@gmail.com>
Tue, 2 May 2023 23:16:04 +0000 (00:16 +0100)
committerGitHub <noreply@github.com>
Tue, 2 May 2023 23:16:04 +0000 (23:16 +0000)
commit65a49c6553a27cc36eebb4b79f409c3cb4450d8c
tree63dd98d6a2c362deee109cfc92e8f83c98dca7d8
parent47770a1e91d096fd1c689eb0c78b0f9e76b43639
GH-104102: Optimize `pathlib.Path.glob()` handling of `../` pattern segments (GH-104103)

These segments do not require a `stat()` call, as the selector's
`_select_from()` method is called after we've established that the
parent is a directory.
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-05-02-20-43-03.gh-issue-104102.vgSdEJ.rst [new file with mode: 0644]