-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlib
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.Pathandos.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
PathBasemethods #127714 - GH-127381: pathlib ABCs: remove uncommon
PurePathBasemethods #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_sensitiveargument #131024
ap--
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-pathlib