cpython/Lib/pathlib
Barney Gale a7d41a8947
GH-128520: Subclass abc.ABC in pathlib._abc (#128745)
Convert `JoinablePath`, `ReadablePath` and `WritablePath` to real ABCs
derived from `abc.ABC`.

Make `JoinablePath.parser` abstract, rather than defaulting to `posixpath`.

Register `PurePath` and `Path` as virtual subclasses of the ABCs rather
than deriving. This avoids a hit to path object instantiation performance.

No change of behaviour in the public (non-abstract) classes.
2025-02-16 00:37:26 +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: Subclass abc.ABC in pathlib._abc (#128745) 2025-02-16 00:37:26 +00:00
_local.py GH-128520: Subclass abc.ABC in pathlib._abc (#128745) 2025-02-16 00:37:26 +00:00
_os.py GH-125413: Move pathlib.Path.copy() implementation alongside Path.info (#129856) 2025-02-09 12:05:23 +00:00
types.py GH-125413: Add pathlib.Path.info attribute (#127730) 2025-02-08 01:16:45 +00:00