memory error with zipfile module
Ganesan Rajagopal
rganesan at myrealbox.com
Fri May 19 08:25:01 EDT 2006
>>>>> Hari Sekhon <sekhon.hari at googlemail.com> writes:
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "D:\u\Python24\lib\zipfile.py", line 357, in read
> bytes = dc.decompress(bytes)
> MemoryError
Looks like the .iso file is huge. Even if it's only a CD image (approx
650MB), reading it all into memory in a single string is not a good idea.
> The python zipfile module is obviously broken...
Indeed. I am surprised that there is no API that returns a file object.
Ganesan
--
Ganesan Rajagopal
More information about the Python-list
mailing list