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
[Jacob S.]
> Ok, I'm stuck on #4
>
> I tried using urllib like the source hints... but, when I run my automation
> of the process of typing in the new nothing, I run through about 15 pages,
> then I notice that they add an extra number in the text.
> 60167 or something like that
> This is encouragi
Quoting "Jacob S." <[EMAIL PROTECTED]>:
> Unfortunately, after about 50 pages or so, it stops, apparently using
> too much memory, or something causing the computer to lock badly enough I
> have to wait for 5 minutes for the keyboard interupt to work. I believe it
> also hints in the source that I
, and maybe a slight push in a better, less
memory consuming direction...
Can you help?
Jacob -- also known as "The Schmidtty"
- Original Message -
From: "Max Noel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc:
Sent: Thursday, May 05, 2005 8:50 AM
Subj
On May 5, 2005, at 00:53, [EMAIL PROTECTED] wrote:
> As seen on python-announce (via Dr Dobbs):
>
> http://www.pythonchallenge.com/
>
> Good fun!
>
Very interesting indeed! I'm stuck on number 7, though -- looks
like it requires the use of PIL, which I've never used before.
-- Max
maxnoe
As seen on python-announce (via Dr Dobbs):
http://www.pythonchallenge.com/
Good fun!
--
John.
[currently on riddle 6]
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor