Skip to content
Open
Changes from all commits
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
12 changes: 7 additions & 5 deletions Doc/library/zipfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defined in `PKZIP Application Note`_.

This module does not handle multipart ZIP files.
It can handle ZIP files that use the ZIP64 extensions
(that is ZIP files that are more than 4 GiB in size). It supports
(mostly for ZIP files larger than 4 GiB). It supports
decryption of encrypted files in ZIP archives, but it cannot
create an encrypted file. Decryption is extremely slow as it is
implemented in native Python rather than C.
Expand Down Expand Up @@ -204,10 +204,12 @@ ZipFile objects
(:mod:`zlib`, :mod:`bz2`, :mod:`lzma`, or :mod:`compression.zstd`) is not
available, :exc:`RuntimeError` is raised. The default is :const:`ZIP_STORED`.

If *allowZip64* is ``True`` (the default) zipfile will create ZIP files that
use the ZIP64 extensions when the zipfile is larger than 4 GiB. If it is
``false`` :mod:`!zipfile` will raise an exception when the ZIP file would
require ZIP64 extensions.
If *allowZip64* is ``True`` (the default), ZIP64 extensions will be used
on demand when the archive is written, such as when the total archive or an
individual member is larger than 2 GiB (for compatibility with legacy tools
even though the official hard limit is 4 GiB), or when there are more than
65535 members in the archive. If it is ``False``, an exception will be
raised instead.

The *compresslevel* parameter controls the compression level to use when
writing files to the archive.
Expand Down
Loading