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

Re: [Tutor] Python riddles

2005-05-08 Thread Tim Peters
[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

Re: [Tutor] Python riddles

2005-05-08 Thread jfouhy
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

Re: [Tutor] Python riddles

2005-05-08 Thread Jacob S.
, 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

Re: [Tutor] Python riddles

2005-05-05 Thread Max Noel
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

[Tutor] Python riddles

2005-05-04 Thread jfouhy
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