why zip64_limit defined as 1<<31 -1?

jesse chat2jesse at gmail.com
Thu Jan 29 01:55:17 CET 2015

the official zip format spec states clearly that normal zip file should be
<= 4G size instead 2G.  I just can not believe Python has such an obvious

People suggested monkey patch the ZIP64_LIMIT value to pass 2G, I am not
sure what will be the ramifications.
On Jan 28, 2015 1:37 PM, "Chris Angelico" <rosuav at gmail.com> wrote:

> On Thu, Jan 29, 2015 at 5:53 AM, jesse <chat2jesse at gmail.com> wrote:
> > should not it be 1<<32 -1(4g)?
> >
> > normal zip archive format should be able to support 4g file.
> >
> > thanks
> 1<<31-1 is the limit for a signed 32-bit integer. You'd have to look
> into the details of the zip file format to see whether that's the
> official limit or not; it might simply be that some (un)archivers have
> problems with >2GB files, even if the official stance is that it's
> unsigned.
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150128/19b19fee/attachment.html>

More information about the Python-list mailing list