[Python-Dev] zipfile module can't handle large files

Kevin Ar18 kevinar18 at hotmail.com
Wed Aug 29 21:56:33 CEST 2007

Create a zip file with a file inside consisting of several GB (say 2 or 5 GB).  The zipfile module will fail, when attempting to extract the large file.

The issue is near line 490 in zifile.py.  It appears that read (a file operation) is unable to read such large amounts of data.  I tried editing zipfile.py so that read would read things piece by piece but just got a memory error.

Does anyone know how to fix this limitation in the zipfile module?
See what you’re getting into…before you go there

More information about the Python-Dev mailing list