[Python-ideas] Add a .pop() method to ZipFile

Serhiy Storchaka storchaka at gmail.com
Sat May 11 15:28:57 CEST 2013


11.05.13 03:50, Greg Ewing написав(ла):
> Seems to me it would be better to provide ZipFile with a
> general remove() operation that does the right thing, with
> optimisation for the case where the file happens to be
> at the end.

http://bugs.python.org/issue6818

However in general case this means opening a new file, copying the 
filtered content from the old file to the new one and then replacing the 
old file by the new one. And even this could fail for weird zipfiles 
with overlapped files.




More information about the Python-ideas mailing list