Gzip - gunzip using zlib

Stefan Behnel stefan.behnel-n05pAM at web.de
Sat Jun 9 13:46:16 EDT 2007


flebber wrote:
> Hi Can anyone show me a working example of how to use gzip to
> decompress a file. I have read the docs at python.org and had many
> goes at it but just can't get it to work.

According to your other post, you are trying to open a ZIP archive using gzip.
Use the zipfile module instead.

Stefan



More information about the Python-list mailing list