Skip to content

Conversation

@barneygale
Copy link
Contributor

@barneygalebarneygale commented Dec 12, 2024

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.

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.
@barneygalebarneygale changed the title GH-126381: pathlib ABCs: remove uncommon PurePathBase methodsGH-127714: pathlib ABCs: remove uncommon PurePathBase methodsDec 12, 2024
@barneygalebarneygale changed the title GH-127714: pathlib ABCs: remove uncommon PurePathBase methodsGH-127381: pathlib ABCs: remove uncommon PurePathBase methodsDec 12, 2024
@barneygalebarneygale enabled auto-merge (squash) December 29, 2024 21:44
@barneygalebarneygale merged commit ef63cca into python:mainDec 29, 2024
36 checks passed
srinivasreddy pushed a commit to srinivasreddy/cpython that referenced this pull request Jan 8, 2025
…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.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@barneygale