cpython/Lib/pathlib
Barney Gale 49aaee7978
pathlib ABCs: restore relative_to() and is_relative_to() (#138853)
Restore `JoinablePath.[is_]relative_to()`, which were deleted in
ef63cca494. These methods are too useful to
forgo. Restore old tests, and add new tests covering path classes with
non-overridden `__eq__()` and `__hash__()`.

Slightly simplify `PurePath.relative_to()` while we're in the area.

No change to public APIs, because the pathlib ABCs are still private.
2025-10-10 19:08:55 +01:00
..
__init__.py pathlib ABCs: restore relative_to() and is_relative_to() (#138853) 2025-10-10 19:08:55 +01:00
_os.py GH-139174: Prepare pathlib.Path.info for new methods (#139175) 2025-09-24 01:52:24 +00:00
types.py pathlib ABCs: restore relative_to() and is_relative_to() (#138853) 2025-10-10 19:08:55 +01:00