Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'api.': 0.05; 'classes.': 0.05; 'agree,': 0.07; 'weekend,': 0.07; '21,': 0.09; 'content- type:multipart/signed': 0.09; 'filename:fname piece:signature': 0.09; 'header:In-reply-to:1': 0.09; 'wrote:': 0.15; '*args)': 0.16; 'abraham': 0.16; 'content-type:application/pgp-signature': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname:signature.asc': 0.16; 'from:addr:kb1pkl': 0.16; 'from:name:corey richardson': 0.16; 'richardson': 0.16; 'subject:between': 0.16; 'tarfile': 0.16; 'twist': 0.16; '>>>': 0.16; 'to:name:python-list': 0.19; 'solution.': 0.19; 'maybe': 0.22; 'fri': 0.23; 'archive': 0.23; 'import': 0.29; 'module': 0.30; '-0400': 0.30; 'tar': 0.30; 'to:addr:python-list': 0.34; 'header:User-Agent:1': 0.34; 'however,': 0.34; 'file': 0.36; 'received:76': 0.38; 'subject:: ': 0.38; 'unlike': 0.39; 'either': 0.39; 'to:addr:python.org': 0.39; 'might': 0.39; 'skip:z 10': 0.40; 'called': 0.40; 'header:Message-Id:1': 0.61; 'received:172.29': 0.64; 'received:r1000.mx.aol.com': 0.64; 'zip': 0.65; 'from:addr:aim.com': 0.67; 'freedom': 0.68; 'offer': 0.72; '2011:': 0.84; 'received:64.12.78.142': 0.91; 'received:imr- ma06.mx.aol.com': 0.91 Subject: Re: Inconsistencies between zipfile and tarfile APIs From: Corey Richardson To: python-list In-reply-to: <3241cbe4-9829-438b-ac0e-a0b87aff62d9@q15g2000yqk.googlegroups.com> References: <5fd8e664-c855-41a2-9d8b-36d4c486f0b9@n35g2000yqf.googlegroups.com> <3241cbe4-9829-438b-ac0e-a0b87aff62d9@q15g2000yqk.googlegroups.com> Date: Fri, 22 Jul 2011 01:05:19 -0400 User-Agent: Sup/0.12.1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha256"; boundary="=-1311311123-311312-10576-3845-2-="; protocol="application/pgp-signature" x-aol-global-disposition: G X-AOL-VSS-INFO: 5400.1158/72619 X-AOL-VSS-CODE: scan_error X-AOL-SCOLL-SCORE: 0:2:471195648:93952408 X-AOL-SCOLL-URL_COUNT: 0 x-aol-sid: 3039ac1d33834e29053a2ae0 X-AOL-IP: 76.119.157.207 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1311311483 news.xs4all.nl 23857 [2001:888:2000:d::a6]:56556 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:10071 --=-1311311123-311312-10576-3845-2-= Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: quoted-printable Excerpts from rantingrick's message of Fri Jul 22 00:48:37 -0400 2011: > On Jul 21, 11:13pm, Corey Richardson 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 =3D ZipFile(path, *args) > >>> tf =3D 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. -- = Corey Richardson "Those who deny freedom to others, deserve it not for themselves" -- Abraham Lincoln --=-1311311123-311312-10576-3845-2-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQEcBAEBCAAGBQJOKQUTAAoJEAFAbo/KNFvpYQAH/1pYe+De3uwj4MoAo0f9dYAu n7wyXy35iMr/gyUJRAZ4xCSgkk92TIzTUIWX94eisQyuByeW2AfIC2FgaDAYP5tS q18TRmZbSvxqrl8MfLNltkFFr+pn4/NBvtM5uPzkz+Cp7aJcpEiQHYA0WNt7cHiQ GSpePSVE4MRbSpMOGgPkSy7rS2ofaBdMS+bEQHGBkTpVO7Qh6RuF8ZkWprh5C/fY tuf3R7PY3S4w06n9N2u4OtZSI1QZ8DzOR1MIs2hNhNxd24UOsqog8XX7zCPDDo7p lxd4CoMYt9ka8+TiyJmSOyNw3yc+G4otSPhe64H+L7w38Yn72EneQzuDJMfxMYM= =jCgi -----END PGP SIGNATURE----- --=-1311311123-311312-10576-3845-2-=--