]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-127807: pathlib ABCs: remove `PurePathBase._raw_paths` (#127883)
authorBarney Gale <barney.gale@gmail.com>
Sun, 22 Dec 2024 01:17:59 +0000 (01:17 +0000)
committerGitHub <noreply@github.com>
Sun, 22 Dec 2024 01:17:59 +0000 (01:17 +0000)
commita959ea1b0a026ff118975b9b539513b06dde3190
tree32be56a9194e7e349aa75bfd6a299e35754de8dd
parent2a66dd33dfc0b845042da9bb54aaa4e890733f54
GH-127807: pathlib ABCs: remove `PurePathBase._raw_paths` (#127883)

Remove the `PurePathBase` initializer, and make `with_segments()` and
`__str__()` abstract. This allows us to drop the `_raw_paths` attribute,
and also the `Parser.join()` protocol method.
Lib/pathlib/_abc.py
Lib/pathlib/_local.py
Lib/pathlib/_types.py
Lib/test/test_pathlib/test_pathlib.py
Lib/test/test_pathlib/test_pathlib_abc.py