[issue40233] Awkward to set compression on writeable ZipFile.open()

2020-04-08 Thread Daniel Holth
Daniel Holth added the comment: My mistake. It honors ZipInfo if passed. -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue40233] Awkward to set compression on writeable ZipFile.open()

2020-04-08 Thread Daniel Holth
New submission from Daniel Holth : It looks like this is the current API to set compression at the individual file level when writing with ZipFile.open() z.compression = zipfile.ZIP_STORED data_writer = z.open(zip_info or filename, "w") z.compression = saved It would