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.
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