]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-113528: Deoptimise `pathlib._abc.PurePathBase.parent` (#113530)
authorBarney Gale <barney.gale@gmail.com>
Sat, 6 Jan 2024 21:17:51 +0000 (21:17 +0000)
committerGitHub <noreply@github.com>
Sat, 6 Jan 2024 21:17:51 +0000 (21:17 +0000)
commit37bd893a22b784d573b71df5417d855dc32dee62
tree1ed89f9e946518beffabe9d10f77f176458f85d1
parent1e914ad89de707b8a69b03d7b36f5022f4c07c78
GH-113528: Deoptimise `pathlib._abc.PurePathBase.parent` (#113530)

Replace use of `_from_parsed_parts()` with `with_segments()`, and move
assignments to `_drv`, `_root`, _tail_cached` and `_str` slots into
`PurePath`.
Lib/pathlib/__init__.py
Lib/pathlib/_abc.py