Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
GH-99189: improve the documentation for zipfile.Path and Traversable
  • Loading branch information
FFY00 committed Feb 5, 2023
commit a52c7d63e6754ced873f573981053591cf842832
5 changes: 4 additions & 1 deletion Doc/library/importlib.resources.abc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,12 @@

.. 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.

If you need a representation of the object on the file-system, you can use
:meth:`importlib.resources.as_file`.
Comment thread
FFY00 marked this conversation as resolved.
Outdated

.. versionadded:: 3.9

.. deprecated-removed:: 3.12 3.14
Expand Down
5 changes: 3 additions & 2 deletions Doc/library/zipfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ The module defines the following items:
.. class:: Path
:noindex:

A pathlib-compatible wrapper for zip files. See section
:ref:`path-objects` for details.
Class that implements a subset of the interface provided by
:class:`pathlib.Path`, including the full
:class:`importlib.resources.abc.Traversable` interface.

.. versionadded:: 3.8

Expand Down