]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-113528: Deoptimise `pathlib._abc.PurePathBase.name` (#113531)
authorBarney Gale <barney.gale@gmail.com>
Sat, 6 Jan 2024 20:50:25 +0000 (20:50 +0000)
committerGitHub <noreply@github.com>
Sat, 6 Jan 2024 20:50:25 +0000 (20:50 +0000)
commit1e914ad89de707b8a69b03d7b36f5022f4c07c78
treedcd3295578b634ff4e8756bec06c6b839fb9d90a
parent2205510e7b32eb4c7bbe1982d7b5dfcbfb85cffe
GH-113528: Deoptimise `pathlib._abc.PurePathBase.name` (#113531)

Replace usage of `_from_parsed_parts()` with `with_segments()` in
`with_name()`, and take a similar approach in `name` for consistency's
sake.
Lib/pathlib/__init__.py
Lib/pathlib/_abc.py