[Python-bugs-list] [ python-Bugs-683910 ] zipfile should have a tarfile-like API

SourceForge.net noreply@sourceforge.net
Mon, 10 Feb 2003 05:26:34 -0800


Bugs item #683910, was opened at 2003-02-11 00:26
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=683910&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: Anthony Baxter (anthonybaxter)
Summary: zipfile should have a tarfile-like API

Initial Comment:
zipfile.ZipFile() should have an interface similar to
tarfile.TarFile() for extracting files. At it's
simplest, this can
be written:

tf = tarfile.open(self.filename, 'r')
for member in tf.getmembers():
     tf.extract(member)

This does "all the right things". This is a much more
pleasant
interface to use than the ZipFile equivalent.

Assigning to self as a reminder to do this.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=683910&group_id=5470