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.

Title: Awkward to set compression on writeable
Type: Stage: resolved
Components: Library (Lib) Versions: Python 3.7
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: alanmcintyre, dholth, serhiy.storchaka, twouters
Priority: normal Keywords:

Created on 2020-04-08 23:14 by dholth, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg366028 - (view) Author: Daniel Holth (dholth) * Date: 2020-04-08 23:14
It looks like this is the current API to set compression at the individual file level when writing with

        z.compression = zipfile.ZIP_STORED
        data_writer = or filename, "w")
        z.compression = saved

It would be useful to have a parameter or to honor the compression setting of the passed ZipInfo.
msg366034 - (view) Author: Daniel Holth (dholth) * Date: 2020-04-09 04:12
My mistake. It honors ZipInfo if passed.
Date User Action Args
2022-04-11 14:59:29adminsetgithub: 84414
2020-04-09 04:12:42dholthsetstatus: open -> closed

messages: + msg366034
stage: resolved
2020-04-08 23:14:05dholthcreate