]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-113225: Speed up `pathlib.Path.glob()` (#113226)
authorBarney Gale <barney.gale@gmail.com>
Thu, 4 Jan 2024 20:48:26 +0000 (20:48 +0000)
committerGitHub <noreply@github.com>
Thu, 4 Jan 2024 20:48:26 +0000 (20:48 +0000)
commitc2e8298eba3f8d75a58e5b3636f8edc8d60e68da
tree5b182276045c17295f0c7218870aca6833ab8ca0
parent4681a5271a8598b46021cbc556ac8098ab8a1d81
GH-113225: Speed up `pathlib.Path.glob()` (#113226)

Use `os.DirEntry.path` as the string representation of child paths, unless
the parent path is empty, in which case we use the entry `name`.
Lib/pathlib/__init__.py
Misc/NEWS.d/next/Library/2023-12-17-04-43-57.gh-issue-113225.dhxhiZ.rst [new file with mode: 0644]