Re: [Tutor] Python riddles - zip question

2005-05-09 Thread jfouhy
Quoting "D. Hartley" <[EMAIL PROTECTED]>: > How do I open a zipfile? I see commands for closing it, but i only see > "class zipfile" - no command like urlopen() (!!!) Look at the constructor :-) >>> import zipfile >>> z = zipfile.ZipFile('myzip.zip') >>> z.printdir() ... -- John.

[Tutor] Python riddles - zip question

2005-05-09 Thread D. Hartley
How do I open a zipfile? I see commands for closing it, but i only see "class zipfile" - no command like urlopen() (!!!) Thanks! -- Forwarded message -- From: Roel Schroeven <[EMAIL PROTECTED]> Date: May 9, 2005 1:31 PM Subject: Re: [Tutor] Fwd: Fwd: Python riddles To: tutor@pytho