How to decompress .Z file?
Nick Craig-Wood
nick at craig-wood.com
Mon Aug 20 11:30:10 EDT 2007
Hyunchul Kim <sundol at sfc.keio.ac.jp> wrote:
> How can .Z file be decompressed?
The old unix program compress used to generate these files.
http://packages.debian.org/unstable/utils/ncompress
You'll find the command line programs gzip/gunzip/zcat can decompress
them too.
> According to python library reference, .Z file might not be
> supported by python, yet.
Unfortunately the python gzip library doesn't read .Z files.
I'd pipe the data to zcat using subprocess to decompress from python.
I haven't used a .Z files for many many years - where are you getting
them from?
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list
mailing list