forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythonGH-110109: Make pathlib extensible
Add `PurePathBase` and `PathBase` abstract base classes. `PathBase` can be subclassed to implement *virtual paths*: objects representing paths on virtual filesystems, like archive files or remote storage systems.
- Loading branch information
1 parent
77e9aae
commit a3b2cad
Showing
3 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
4 changes: 4 additions & 0 deletions
4
Misc/NEWS.d/next/Library/2023-10-04-00-20-00.gh-issue-110109.RAaIgG.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Add :class:`pathlib.PurePathBase` and :class:`~pathlib.PathBase` abstract | ||
base classes. Users can subclass :class:`pathlib.PathBase` to implement | ||
*virtual paths*: objects that represent paths in archive files, remote | ||
storage systems, disc images, etc. |