mirror of
https://github.com/python/cpython.git
synced 2025-11-17 17:46:45 +00:00
GH-99818: improve the documentation for zipfile.Path and Traversable (GH-101589)
Automerge-Triggered-By: GH:FFY00
This commit is contained in:
parent
59e86caca8
commit
84181c1404
2 changed files with 7 additions and 3 deletions
|
|
@ -89,9 +89,12 @@
|
||||||
|
|
||||||
.. class:: Traversable
|
.. class:: Traversable
|
||||||
|
|
||||||
An object with a subset of pathlib.Path methods suitable for
|
An object with a subset of :class:`pathlib.Path` methods suitable for
|
||||||
traversing directories and opening files.
|
traversing directories and opening files.
|
||||||
|
|
||||||
|
For a representation of the object on the file-system, use
|
||||||
|
:meth:`importlib.resources.as_file`.
|
||||||
|
|
||||||
.. versionadded:: 3.9
|
.. versionadded:: 3.9
|
||||||
|
|
||||||
.. deprecated-removed:: 3.12 3.14
|
.. deprecated-removed:: 3.12 3.14
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,9 @@ The module defines the following items:
|
||||||
.. class:: Path
|
.. class:: Path
|
||||||
:noindex:
|
:noindex:
|
||||||
|
|
||||||
A pathlib-compatible wrapper for zip files. See section
|
Class that implements a subset of the interface provided by
|
||||||
:ref:`path-objects` for details.
|
:class:`pathlib.Path`, including the full
|
||||||
|
:class:`importlib.resources.abc.Traversable` interface.
|
||||||
|
|
||||||
.. versionadded:: 3.8
|
.. versionadded:: 3.8
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue