Message87610
| Author |
ronaldoussoren |
| Recipients |
ronaldoussoren |
| Date |
2009年05月12日.09:36:43 |
| SpamBayes Score |
6.5284903e-06 |
| Marked as misclassified |
No |
| Message-id |
<1242121006.26.0.494386960881.issue6003@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Class zipfile.ZipFile has two methods for adding data to a zipfile:
'write' and 'writestr'.
The former has a "compression_type" argument that can be used to specify
the compression to be used. That latter doesn't have that argument.
Could a "compression_type" argument be added to "writestr" as well? I
regularly create zipfiles from scratch using the writestr method to add
content and currently have to modify the 'compression' attribute of the
zipfile object to control compression and that leads to ugly code.
The other alternative is to use a ZipInfo object as the archive-name of
the newly added file, but that leads to even uglier code. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年05月12日 09:36:46 | ronaldoussoren | set | recipients:
+ ronaldoussoren |
| 2009年05月12日 09:36:46 | ronaldoussoren | set | messageid: <1242121006.26.0.494386960881.issue6003@psf.upfronthosting.co.za> |
| 2009年05月12日 09:36:44 | ronaldoussoren | link | issue6003 messages |
| 2009年05月12日 09:36:44 | ronaldoussoren | create |
|