tars and zips

Chris Gonnerman chris.gonnerman at usa.net
Thu Apr 12 23:01:12 EDT 2001


----- Original Message ----- 
From: <s713221 at student.gu.edu.au>
Subject: Re: tars and zips


> "zlib1.0.4.tar.gz contains C source code for a data compression
> library, compatible with gzip, and a Python interface to the zlib data
> compression library is in the python/ subdirectory."
> 
> On a vanilla python build
> >>> import zlib
> >>>

Unfortunately for Bob, zlib provides only compression services, not 
archiving.  The zipfile module uses zlib to support compression and
adds the archiving support, but "real" zipfiles use several different
compression formats.  Generally, InfoZip can read zipfiles made by 
the zipfile module, but the reverse is not necessarily true.  WinZip
sometimes can and sometimes can't handle those zipfiles also.

Bob, if you have a working C compiler you should be able to port
the InfoZip sources to pSOS... or is the environment really that
restricted.






More information about the Python-list mailing list