cpython/Lib/pathlib
Barney Gale 22a442181d
GH-128520: Divide pathlib ABCs into three classes (#128523)
In the private pathlib ABCs, rename `PurePathBase` to `JoinablePath`, and
split `PathBase` into `ReadablePath` and `WritablePath`. This improves the
API fit for read-only virtual filesystems.

The split of `PathBase` entails a similar split of `CopyWorker` (implements
copying) and the test cases in `test_pathlib_abc`.

In a later patch, we'll make `WritablePath` inherit directly from
`JoinablePath` rather than `ReadablePath`. For a couple of reasons,
this isn't quite possible yet.
2025-01-11 19:27:47 +00:00
..
__init__.py GH-127807: pathlib ABCs: remove `PathBase._unsupported_msg()` (#127855) 2024-12-12 17:39:24 +00:00
_abc.py GH-128520: Divide pathlib ABCs into three classes (#128523) 2025-01-11 19:27:47 +00:00
_local.py GH-128520: Divide pathlib ABCs into three classes (#128523) 2025-01-11 19:27:47 +00:00
_os.py GH-127807: pathlib ABCs: move private copying methods to dedicated class (#127810) 2024-12-22 02:22:08 +00:00
_types.py GH-128520: Divide pathlib ABCs into three classes (#128523) 2025-01-11 19:27:47 +00:00