summaryrefslogtreecommitdiffstats
path: root/Doc/library/zipfile.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/zipfile.rst')
-rw-r--r--Doc/library/zipfile.rst21
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index 3db55e6..42fe27b 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -521,6 +521,27 @@ Path objects are traversable using the ``/`` operator or ``joinpath``.
Return ``True`` if the current context references a file or
directory in the zip file.
+.. data:: Path.suffix
+
+ The file extension of the final component.
+
+ .. versionadded:: 3.11
+ Added :data:`Path.suffix` property.
+
+.. data:: Path.stem
+
+ The final path component, without its suffix.
+
+ .. versionadded:: 3.11
+ Added :data:`Path.stem` property.
+
+.. data:: Path.suffixes
+
+ A list of the path’s file extensions.
+
+ .. versionadded:: 3.11
+ Added :data:`Path.suffixes` property.
+
.. method:: Path.read_text(*, **)
Read the current file as unicode text. Positional and