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

Greg Ewing greg.ewing at canterbury.ac.nz
Sat May 11 02:50:28 CEST 2013


Serhiy Storchaka wrote:
> Indeed. infolist() may return a copy or non-modifiable proxy, NameToInfo 
> and fp are private attributes. ZipFile may save in private attribute an 
> offset of central directory.

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.

-- 
Greg



More information about the Python-ideas mailing list