Author Patrik Dufresne
Recipients Patrik Dufresne
Date 2016-02-01.00:55:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1454288123.43.0.462874591937.issue26253@psf.upfronthosting.co.za>
In-reply-to
Content
When using tarfile.open(mode='w|gz'), the compression level is hard-coded to 9. Seed _Stream._init_write_gz():
    self.zlib.compressobj(9,

1. In regards to zlib, I would start by replacing the value of 9 by zlib.Z_DEFAULT_COMPRESSION. This is the default value and zipfile is using it. Why using something different.

2. Then, I would also love to control the compression level when calling tarfile.open()
History
Date User Action Args
2016-02-01 00:55:23Patrik Dufresnesetrecipients: + Patrik Dufresne
2016-02-01 00:55:23Patrik Dufresnesetmessageid: <1454288123.43.0.462874591937.issue26253@psf.upfronthosting.co.za>
2016-02-01 00:55:23Patrik Dufresnelinkissue26253 messages
2016-02-01 00:55:23Patrik Dufresnecreate