]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-125413: pathlib ABCs: use caching `path.info.exists()` when globbing (#130422)
authorBarney Gale <barney.gale@gmail.com>
Mon, 24 Feb 2025 19:07:54 +0000 (19:07 +0000)
committerGitHub <noreply@github.com>
Mon, 24 Feb 2025 19:07:54 +0000 (19:07 +0000)
commit48c84a400aa90014a16ceac92df4b0cf5ca6b3d4
tree90585212559f310ffe7ece9eb9398460369ed494
parentd73d69e232ce848733517736b1761e7bd2478574
GH-125413: pathlib ABCs: use caching `path.info.exists()` when globbing (#130422)

Call `ReadablePath.info.exists()` rather than `ReadablePath.exists()` when
globbing so that we use (or populate) the `info` cache.
Lib/glob.py
Lib/pathlib/_abc.py
Lib/test/test_pathlib/test_pathlib_abc.py