Re: Gzip - gunzip using zlib

2007-06-09 Thread Stefan Behnel
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 inst

Re: Gzip - gunzip using zlib

2007-06-08 Thread Paul Rubin
flebber <[EMAIL PROTECTED]> writes: > 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. Untested in this instance, but this is how I usually do it: import gzip z =

Gzip - gunzip using zlib

2007-06-08 Thread flebber
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. Cheers flebber -- http://mail.python.org/mailman/listinfo/python-list