[Python-Dev] Zipfile and tarfile

Itamar Shtull-Trauring twisted@itamarst.org
Sun, 14 Apr 2002 21:13:43 +0200


Martin v. Loewis wrote:

> Another such patch was submitted as http://python.org/sf/503592. I
> personally believe that the method on zipfiles to create a file-like
> object for archive members should be called .open().

This is a patch for writing to disk. My patch gave the programmer a
file-like interface, decompressing from the ZIP file on the fly, so
this patch's functionality could be implemented with my patch using
shutil.copyobj() or whatever it's called.

The name is not important, open() works too.