]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-101357: Suppress `OSError` from `pathlib.Path.exists()` and `is_*()` (#118243)
authorBarney Gale <barney.gale@gmail.com>
Tue, 14 May 2024 17:53:15 +0000 (18:53 +0100)
committerGitHub <noreply@github.com>
Tue, 14 May 2024 17:53:15 +0000 (17:53 +0000)
commitfbe6a0988ff08aef29c4649527d5d620d77ca4a2
tree462634df3fdd8dae7f42d70fc3fc6a29f07ddfe9
parentd8e0e009195b2388fb53012c1f0fa786426dc05f
GH-101357: Suppress `OSError` from `pathlib.Path.exists()` and `is_*()` (#118243)

Suppress all `OSError` exceptions from `pathlib.Path.exists()` and `is_*()`
rather than a selection of more common errors as we do presently. Also
adjust the implementations to call `os.path.exists()` etc, which are much
faster on Windows thanks to GH-101196.
Doc/library/pathlib.rst
Lib/glob.py
Lib/pathlib/_abc.py
Lib/pathlib/_local.py
Misc/NEWS.d/next/Library/2024-05-08-19-47-34.gh-issue-101357.e4R_9x.rst [new file with mode: 0644]