[Tutor] Is this possible and should it be done?

Steven D'Aprano steve at pearwood.info
Mon May 21 13:38:19 CEST 2012

Joel Goldstick wrote:

> I'm not sure if this is exactly what you are looking for, but python
> handles tar files (various compression formats) with this module:
> http://docs.python.org/library/tarfile.html.

Technically, tar is not a compression format. It just combines multiple files 
into a single tar file, with no compression.

Of course, you can compress the tar file afterwards, with zip, gzip, bzip2, 
rar, or any other compression format you like. Especially common ones are 
.tar.gz and .tar.bz2.

> What is your motivation for this idea?

With respect Joel, the OP did give a use-case for his idea, did you not notice it?


More information about the Tutor mailing list