cpython/Lib/pathlib
Barney Gale 5c89adf385
GH-127456: pathlib ABCs: add protocol for path parser (#127494)
Change the default value of `PurePathBase.parser` from `ParserBase()` to
`posixpath`. As a result, user subclasses of `PurePathBase` and `PathBase`
use POSIX path syntax by default, which is very often desirable.

Move `pathlib._abc.ParserBase` to `pathlib._types.Parser`, and convert it
to a runtime-checkable protocol.

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-12-09 18:31:22 +00:00
..
__init__.py GH-73991: Rework pathlib.Path.copytree() into copy() (#122369) 2024-08-11 22:43:18 +01:00
_abc.py GH-127456: pathlib ABCs: add protocol for path parser (#127494) 2024-12-09 18:31:22 +00:00
_local.py GH-127381: pathlib ABCs: remove PathBase.unlink() and rmdir() (#127736) 2024-12-08 18:45:09 +00:00
_os.py GH-122890: Fix low-level error handling in pathlib.Path.copy() (#122897) 2024-08-24 15:11:39 +01:00
_types.py GH-127456: pathlib ABCs: add protocol for path parser (#127494) 2024-12-09 18:31:22 +00:00