Inconsistencies between zipfile and tarfile APIs
kb1pkl at aim.com
Fri Jul 22 07:05:19 CEST 2011
Excerpts from rantingrick's message of Fri Jul 22 00:48:37 -0400 2011:
> On Jul 21, 11:13pm, Corey Richardson <kb1... at aim.com> wrote:
> > I agree, actually.
> Maybe i can offer a solution. A NEW module called "archive.py" (could
> even be a package!) which exports both the zip and tar file classes.
> However, unlike the current situation this archive module will be
> consistent with it's API.
> >>> from archive import ZipFile, TarFile
> >>> zf = ZipFile(path, *args)
> >>> tf = TarFile(path, *args)
I have nothing to do this weekend, I might as well either write my own or
twist around the existing implementations in the hg repo.
"Those who deny freedom to others, deserve it not for themselves"
-- Abraham Lincoln
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 490 bytes
Desc: not available
More information about the Python-list