]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-113528: Deoptimise `pathlib._abc.PathBase.resolve()` (#113782)
authorBarney Gale <barney.gale@gmail.com>
Tue, 9 Jan 2024 19:50:23 +0000 (19:50 +0000)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 19:50:23 +0000 (19:50 +0000)
commit1092cfb20179ac7dd6a2c3c6f8a57ecc1732c777
treea2826b900a63583c3544689fc39ee4f9a5600de7
parent3a9096c337c16c9335e0d4eba8d1d4196258af72
GH-113528: Deoptimise `pathlib._abc.PathBase.resolve()` (#113782)

Replace use of `_from_parsed_parts()` with `with_segments()` in
`resolve()`.

No effect on `Path.resolve()`, which uses `os.path.realpath()`.
Lib/pathlib/_abc.py