summaryrefslogtreecommitdiffstats
path: root/Doc/library/zipfile.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-05-15 09:27:16 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-05-15 09:27:16 (GMT)
commitf47fc5553be1945d4d3ca1386c523fcf2ed28cef (patch)
treea09ec8309ad9c60c4f8f12c5bf5a7c9e54a15794 /Doc/library/zipfile.rst
parent3d3f7e8b41a8b1f47e40aed5696413b167166998 (diff)
downloadcpython-f47fc5553be1945d4d3ca1386c523fcf2ed28cef.zip
cpython-f47fc5553be1945d4d3ca1386c523fcf2ed28cef.tar.gz
cpython-f47fc5553be1945d4d3ca1386c523fcf2ed28cef.tar.bz2
Issue #26039: Document ZipInfo.is_dir() and make force_zip64 keyword-only.
Patch by Thomas Kluyver.
Diffstat (limited to 'Doc/library/zipfile.rst')
-rw-r--r--Doc/library/zipfile.rst12
1 files changed, 10 insertions, 2 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst
index cf8d547..f5e161e 100644
--- a/Doc/library/zipfile.rst
+++ b/Doc/library/zipfile.rst
@@ -207,7 +207,7 @@ ZipFile Objects
.. index::
single: universal newlines; zipfile.ZipFile.open method
-.. method:: ZipFile.open(name, mode='r', pwd=None, force_zip64=False)
+.. method:: ZipFile.open(name, mode='r', pwd=None, *, force_zip64=False)
Access a member of the archive as a file-like object. *name*
is the name of the file in the archive, or a :class:`ZipInfo` object. The
@@ -490,7 +490,15 @@ file:
.. versionadded:: 3.6
-Instances have the following attributes:
+Instances have the following methods and attributes:
+
+.. method:: ZipInfo.is_dir()
+
+ Return True if this archive member is a directory.
+
+ This uses the entry's name: directories should always end with ``/``.
+
+ .. versionadded:: 3.6
.. attribute:: ZipInfo.filename