[Python-Dev] zipfile.py
James C. Ahlstrom
jim@interet.com
Mon, 20 Dec 1999 14:25:27 -0500
"M.-A. Lemburg" wrote:
> I guess it would be ok to waste space. You could provide
> a .cleanup() or .rewrite() method that takes care of
> reorganizing the file to fill up the gaps.
OK, adding a duplicate name replaces the old file.
> Well the module seems to work just fine with compression
> on, so disallowing it or issuing a warning would reduce its value,
> IMHO.
Yes compression works, but 90% of Python installations don't have
zlib, so it is an ERROR to create archives with compression when
these archives are distributed to other sites.
> How about making compression a boolean value and then
> converting any true value to 8 ?
It would close the door to future or other compression methods.
Currently the method must be 0 or 8 or a traceback will result.
JimA