[Python-Dev] Zipfile needs?

"Martin v. Löwis" martin at v.loewis.de
Tue Dec 28 14:41:52 CET 2004

Scott David Daniels wrote:
> I'm hoping to add BZIP2 compression to zipfile for 2.5.  My primary
> motivation is that Project Gutenberg seems to be starting to use BZIP2
> compression for some of its zips.  What other wish list things do
> people around here have for zipfile?  I thought I'd collect input here
> and make a PEP.

AFAIR, compression mechanisms are defined by numbers in the zip file.
So you should not bother with such a change unless there is some
"official" specification that explains how bzip2 is used in zipfiles.

IOW, looking at


you'll see that PKWARE has assigned algorithm 12 for bzip2. You might
want to take a look at the spec to see what else the Python
implementation lacks, and either document these features as deliberately
missing, TODO, or just implement them right away.


More information about the Python-Dev mailing list