]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path...
authorŁukasz Langa <lukasz@langa.pl>
Mon, 2 Jun 2025 16:28:09 +0000 (18:28 +0200)
committerGitHub <noreply@github.com>
Mon, 2 Jun 2025 16:28:09 +0000 (18:28 +0200)
commit00af9794dd118f7b835dd844b2b609a503ad951e
tree673322d9a775f8a846494a94ad3f3f529895ef87
parent03ac445b118e22aa08f5db6cde10db3420e3a7bb
[3.9] bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path (GH-25264) (GH-135035)

Also adds a new "strict" argument to realpath() to avoid changing the default behaviour of pathlib while sharing the implementation.

(cherry-picked from commit baecfbd849dbf42360d3a84af6cc13160838f24d)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Doc/library/os.path.rst
Lib/ntpath.py
Lib/pathlib.py
Lib/posixpath.py
Lib/test/test_ntpath.py
Lib/test/test_posixpath.py
Misc/NEWS.d/next/Library/2021-04-08-22-11-27.bpo-25264.b33fa0.rst [new file with mode: 0644]