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

Serhiy Storchaka storchaka at gmail.com
Fri May 10 19:42:17 CEST 2013


10.05.13 20:30, Daniel Holth написав(ла):
> I wrote it because the last file in a particular zip archive is an
> embedded digital signature. To re-sign the file you may remove the
> file, add or remove signatures from that file, and append the new
> signatures file.

Well. There is no need to include this specialized feature in the 
stdlib. Just use it in your project. Instead of touching private 
_didModify attribute, set `self.comment = self.comment`.





More information about the Python-ideas mailing list