Dave Sawyer added the comment:

I'd be interested in taking up the zip portion at Pycon 2015 this year. I 
recently had need to delete file(s) from a zipfile.

To do it today with the existing API requires you to unpack the zip and repack 
it. The unpack is slow and you need enough free disk space for the uncompressed 
files.

My strategy is essentially exactly what msg229893 2a said: copy binary blobs to 
a tempfile, then overwrite the original when complete. I would use a name 
filter function to decide what to delete and optional parameter for the temp 
file (falling back to tempfile.tempfile if None). IIRC, this is the same 
strategy used in the dotNet zip library.

----------
nosy: +Dave Sawyer

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6818>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to