]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-113528: Deoptimise `pathlib._abc.PathBase._make_child_relpath()` (#113532)
authorBarney Gale <barney.gale@gmail.com>
Tue, 9 Jan 2024 19:11:17 +0000 (19:11 +0000)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 19:11:17 +0000 (19:11 +0000)
commit9100fc407e8c7038e7214b600b4ae568ae5510e3
tree23428a62d0c6fdaf5b8d8bf6e2efa3a1e16a20b8
parent2fd2e747930987eb8ed4929cf0132e85db759dab
GH-113528: Deoptimise `pathlib._abc.PathBase._make_child_relpath()` (#113532)

Call straight through to `joinpath()` in `PathBase._make_child_relpath()`.
Move optimised/caching code to `pathlib.Path._make_child_relpath()`
Lib/pathlib/__init__.py
Lib/pathlib/_abc.py