2009/3/10 Alan Gauld <alan.ga...@btinternet.com>:
>>           newFile.write(zf.read(zfilename))
>
> Remember you are reading the file into memory and then writing it
> out again in a single operation, that will use twice the space of the
> uncompressed files - plus some extra for overhead.

Question, Do you mean the file in the zipfile (zfilename) or the whole
zipfile (zf)? I would expect zf.read(zfilename) to only read the
requested file in the zipfile.

Thanks
Sander
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to