GH-127381: pathlib ABCs: remove uncommon `PurePathBase` methods by barneygale · Pull Request #127853 · python/cpython
Remove `PurePathBase.relative_to()` and `is_relative_to()` because they don't account for *other* being an entirely different kind of path, and they can't use `__eq__()` because it's not on the `PurePathBase` interface. Remove `PurePathBase.drive`, `root`, `is_absolute()` and `as_posix()`. These are all too specific to local filesystems.
barneygale
changed the title
GH-126381: pathlib ABCs: remove uncommon
GH-127714: pathlib ABCs: remove uncommon PurePathBase methodsPurePathBase methods
barneygale
changed the title
GH-127714: pathlib ABCs: remove uncommon
GH-127381: pathlib ABCs: remove uncommon PurePathBase methodsPurePathBase methods
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request
…python#127853) Remove `PurePathBase.relative_to()` and `is_relative_to()` because they don't account for *other* being an entirely different kind of path, and they can't use `__eq__()` because it's not on the `PurePathBase` interface. Remove `PurePathBase.drive`, `root`, `is_absolute()` and `as_posix()`. These are all too specific to local filesystems.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters