]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-112727: Speed up `pathlib.Path.absolute()` (#112728)
authorBarney Gale <barney.gale@gmail.com>
Mon, 4 Dec 2023 23:21:39 +0000 (23:21 +0000)
committerGitHub <noreply@github.com>
Mon, 4 Dec 2023 23:21:39 +0000 (23:21 +0000)
commit304a1b3f3a8ed9a734ef1d098cafccb6725162db
tree1e383edf3800521666f57883168260e4f964c46b
parent9fe7655c6ce0b8e9adc229daf681b6d30e6b1610
GH-112727: Speed up `pathlib.Path.absolute()` (#112728)

Use `_from_parsed_parts()` to create a pre-joined/pre-parsed path, rather
than passing multiple arguments to `with_segments()`

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/pathlib.py
Misc/NEWS.d/next/Library/2023-12-04-21-30-34.gh-issue-112727.jpgNRB.rst [new file with mode: 0644]