This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: In tarfile, compression level cannot be specified
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Tzigi, amaury.forgeotdarc
Priority: normal Keywords:

Created on 2009-06-14 11:49 by Tzigi, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg89345 - (view) Author: Omri Shaked (Tzigi) Date: 2009-06-14 11:49
When creating a TarFile object that uses compression, the compressor is
always created using its default compression level.

import bz2
self.cmp = bz2.BZ2Compressor()

You can't specify the compression level (i.e. self.cmp =
bz2.BZ2Compressor(1)).
msg89380 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2009-06-14 23:40
The TarFile.bz2open function does have a 'compresslevel' parameter.
How do you use TarFile?
msg89397 - (view) Author: Omri Shaked (Tzigi) Date: 2009-06-15 08:45
Silly me...  Thanks!
History
Date User Action Args
2022-04-11 14:56:50adminsetgithub: 50531
2009-06-15 08:45:58Tzigisetstatus: open -> closed

messages: + msg89397
2009-06-14 23:40:34amaury.forgeotdarcsetnosy: + amaury.forgeotdarc
messages: + msg89380
2009-06-14 11:49:58Tzigicreate