]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-109187: Improve symlink loop handling in `pathlib.Path.resolve()` (GH-109192)
authorBarney Gale <barney.gale@gmail.com>
Tue, 26 Sep 2023 16:57:17 +0000 (17:57 +0100)
committerGitHub <noreply@github.com>
Tue, 26 Sep 2023 16:57:17 +0000 (17:57 +0100)
commitecd813f054e0dee890d484b8210e202175abd632
treed3f337b83ab0936b04c00f34f2f3a30e96d78405
parent859618c8cd5de86a975e68d7e5d20c04bc5db2e5
GH-109187: Improve symlink loop handling in `pathlib.Path.resolve()` (GH-109192)

Treat symlink loops like other errors: in strict mode, raise `OSError`, and
in non-strict mode, do not raise any exception.
Doc/library/pathlib.rst
Lib/pathlib.py
Lib/test/test_pathlib.py
Misc/NEWS.d/next/Library/2023-09-09-17-09-54.gh-issue-109187.dIayNW.rst [new file with mode: 0644]