Closed
Description
It's time to make some difficult decisions about which methods deserve to stay in the pathlib._abc.PathBase
interface, and which ought to be made pathlib.Path
-only. Guidelines:
- Compare to
zipfile.Path
andos.DirEntry
; don't evict shared methods. - Include abstract methods only for the most basic functionality common to all virtual filesystems
- Include concrete methods only when they combine abstract methods to produce widely useful functionality
Linked PRs
- GH-127381: pathlib ABCs: remove
PathBase.lstat()
#127382 - GH-127381: pathlib ABCs: remove
PathBase.cwd()
andhome()
#127427 - GH-127381: pathlib ABCs: remove
PathBase.rename()
andreplace()
#127658 - GH-127381: pathlib ABCs: remove
PathBase.resolve()
andabsolute()
#127707 - GH-127381: pathlib ABCs: remove
PathBase.unlink()
andrmdir()
#127736 - GH-127381: pathlib ABCs: remove
PathBase.samefile()
and rareris_*()
#127709 - GH-127381: pathlib ABCs: remove remaining uncommon
PathBase
methods #127714 - GH-127381: pathlib ABCs: remove uncommon
PurePathBase
methods #127853 - GH-127381: pathlib ABCs: remove
PathBase.stat()
#128334 - GH-127381: pathlib ABCs: remove
PathBase.move()
andmove_into()
#128337 - GH-127381: pathlib ABCs: remove
JoinablePath.match()
#129147 - GH-127381: pathlib ABCs: remove
ReadablePath.rglob()
#130207 - GH-127381: pathlib ABCs: remove
ReadablePath.exists()
andis_*()
#130520 - GH-127381: pathlib ABCs: remove
WritablePath.mkdir()
arguments #130611 - GH-127381: pathlib ABCs: remove
case_sensitive
argument #131024