diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-07-03 14:13:42 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-07-03 14:13:42 (GMT) |
commit | b09b844a5c7bb41cf67af8aafe0682c3bfdc12da (patch) | |
tree | 09cb453d31b46761a3da71b09ec4927fdaf61373 /Doc | |
parent | 451a356f11d3ed498a359f94d85a7df5d6a2a843 (diff) | |
download | cpython-b09b844a5c7bb41cf67af8aafe0682c3bfdc12da.zip cpython-b09b844a5c7bb41cf67af8aafe0682c3bfdc12da.tar.gz cpython-b09b844a5c7bb41cf67af8aafe0682c3bfdc12da.tar.bz2 |
Merged revisions 64688 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r64688 | martin.v.loewis | 2008-07-03 14:51:14 +0200 (Do, 03 Jul 2008) | 9 lines
Patch #1622: Correct interpretation of various ZIP header fields.
Also fixes
- Issue #1526: Allow more than 64k files to be added to Zip64 file.
- Issue #1746: Correct handling of zipfile archive comments (previously
archives with comments over 4k were flagged as invalid). Allow writing
Zip files with archives by setting the 'comment' attribute of a ZipFile.
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/zipfile.rst | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Doc/library/zipfile.rst b/Doc/library/zipfile.rst index 6e933f6..49267c0 100644 --- a/Doc/library/zipfile.rst +++ b/Doc/library/zipfile.rst @@ -269,7 +269,7 @@ ZipFile Objects member of the given :class:`ZipInfo` instance. By default, the :class:`ZipInfo` constructor sets this member to :const:`ZIP_STORED`. -The following data attribute is also available: +The following data attributes are also available: .. attribute:: ZipFile.debug @@ -278,6 +278,12 @@ The following data attribute is also available: output) to ``3`` (the most output). Debugging information is written to ``sys.stdout``. +.. attribute:: ZipFile.comment + + The comment text associated with the ZIP file. If assigning a comment to a + :class:`ZipFile` instance created with mode 'a' or 'w', this should be a + string no longer than 65535 bytes. Comments longer than this will be + truncated in the written archive when :meth:`ZipFile.close` is called. .. _pyzipfile-objects: |