How to decompress .Z file?

Thomas Jollans thomas at
Mon Aug 20 16:55:22 CEST 2007

On Monday 20 August 2007, Hyunchul Kim wrote:
> Hi, all
> How can .Z file be decompressed?
> According to python library reference, .Z file might not be supported by
> python, yet.

The GNU zip program (gzip) supports .Z and .z archives, so if you only want to 
support UNIX-like systems you could simply look for a program named "gunzip" 
or "uncompress" and use that.

See also:

The format is now so antiquated (replaced almost totally with zlib/gzip 
compression) that I doubt you'll see it in python, but seams to sport a python implementation.

      Regards,                       Thomas Jollans
GPG key: 0xF421434B may be found on various keyservers, eg
Hacker key <>:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part.
URL: <>

More information about the Python-list mailing list