This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: zipfile should have a tarfile-like API
Type: enhancement Stage:
Components: None Versions:
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: alanmcintyre, anthonybaxter, georg.brandl, skip.montanaro
Priority: normal Keywords:

Created on 2003-02-10 13:26 by anthonybaxter, last changed 2022-04-10 16:06 by admin. This issue is now closed.

Messages (4)
msg53758 - (view) Author: Anthony Baxter (anthonybaxter) (Python triager) Date: 2003-02-10 13:26
zipfile.ZipFile() should have an interface similar to
tarfile.TarFile() for extracting files. At it's
simplest, this can
be written:

tf =, 'r')
for member in tf.getmembers():

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

Assigning to self as a reminder to do this.
msg55401 - (view) Author: Skip Montanaro (skip.montanaro) * (Python triager) Date: 2007-08-29 01:36
Anthony, has this been fixed?
msg59271 - (view) Author: Alan McIntyre (alanmcintyre) * (Python committer) Date: 2008-01-05 00:36
I just posted a patch on issue 467924
( that adds extract and extractall
methods.  Recommend closing this issue unless the patch over there is
insufficient for some reason.
msg60244 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-01-19 22:58
Said patch has now been applied.
Date User Action Args
2022-04-10 16:06:41adminsetgithub: 37953
2008-01-19 22:58:41georg.brandlsetstatus: open -> closed
assignee: anthonybaxter ->
resolution: fixed
messages: + msg60244
nosy: + georg.brandl
2008-01-05 00:36:57alanmcintyresetnosy: + alanmcintyre
messages: + msg59271
2007-08-29 01:36:32skip.montanarosetnosy: + skip.montanaro
messages: + msg55401
2003-02-10 13:26:34anthonybaxtercreate