SIGN IN SIGN UP

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.
B
Barney Gale committed
a7d41a89474a07ce2b96943ea3f152e0dc757240
Parent: 359c7dd
Committed by GitHub <noreply@github.com> on 2/16/2025, 12:37:26 AM