[docs] [issue29013] zipfile: inconsistent doc for ZIP64 file size
report at bugs.python.org
Mon Jan 2 01:22:28 EST 2017
Serhiy Storchaka added the comment:
The documentation was correct. The zipfile module supports *reading* ZIP files up to 4 GiB without the ZIP64 extension, but it requires allowZip64=True for *writing* over 2 GiB files to the ZIP file.
The 2 GiB limit is safer because generated ZIP files can be read by implementations that interpret 32-bit sizes as signed. For example Java don't have unsigned integers. And zipfile and zipimport in old Python versions unpack some fields as signed integers.
resolution: fixed ->
stage: resolved ->
status: closed -> open
Python tracker <report at bugs.python.org>
More information about the docs