Issue 683910: zipfile should have a tarfile-like API (original) (raw)
Issue683910
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.
This issue has been migrated to GitHub: https://github.com/python/cpython/issues/37953
classification
Title: | zipfile should have a tarfile-like API | |
---|---|---|
Type: | enhancement | Stage: |
Components: | None | Versions: |
process
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) ![]() |
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 = 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. | ||
msg55401 - (view) | Author: Skip Montanaro (skip.montanaro) * ![]() |
Date: 2007-08-29 01:36 |
Anthony, has this been fixed? | ||
msg59271 - (view) | Author: Alan McIntyre (alanmcintyre) * ![]() |
Date: 2008-01-05 00:36 |
I just posted a patch on issue 467924 (http://bugs.python.org/issue467924) 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) * ![]() |
Date: 2008-01-19 22:58 |
Said patch has now been applied. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-10 16:06:41 | admin | set | github: 37953 |
2008-01-19 22:58:41 | georg.brandl | set | status: open -> closedassignee: anthonybaxter -> resolution: fixedmessages: + nosy: + georg.brandl |
2008-01-05 00:36:57 | alanmcintyre | set | nosy: + alanmcintyremessages: + |
2007-08-29 01:36:32 | skip.montanaro | set | nosy: + skip.montanaromessages: + |
2003-02-10 13:26:34 | anthonybaxter | create |