Re: [Tutor] following the chain

2005-05-10 Thread jfouhy
Quoting Liam Clarke <[EMAIL PROTECTED]>: > While we're on challenge 4, I assume a linked list is important. Can > anyone point me at a good introduction to linked lists? A linked list, at a high level, is a data structure made of "nodes", where each node contains some data and a pointer to the n

Re: [Tutor] following the chain

2005-05-10 Thread Liam Clarke
While we're on challenge 4, I assume a linked list is important. Can anyone point me at a good introduction to linked lists? Oh, and Servando - I use urllib like this - >>>import urllib >>>opener = urllib.URLopener() >>> page = opener.open('http://www.google.co.nz') >>> pageData = page.read()

Re: [Tutor] following the chain

2005-05-10 Thread Alan Gauld
> import urllib > name="some URL" > X = urllib.urlopen(name) > print X > > the output of X in very strange to me. I have include the exact output: >0x91068>> The message is the clue. urlopen returms a fileobject. So you treat X like an open file. You have to read() from it to get the data. Al

Re: [Tutor] following the chain

2005-05-10 Thread Roel Schroeven
Servando Garcia wrote: > Thanks to the many hints from the list I have made it to level four, of > the python challenges. Many thanks to all. > I truly have been looking for a solid example to follow on the use of > the URL module. I don't feel am using it correctly or I am not > understandi

Re: [Tutor] following the chain

2005-05-10 Thread Goldie, Josh
Try: print X.readline() -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Servando Garcia Sent: Tuesday, May 10, 2005 2:37 PM To: Python help Subject: [Tutor] following the chain Thanks to the many hints from the list I have made it to level four, of the

[Tutor] following the chain

2005-05-10 Thread Servando Garcia
Thanks to the many hints from the list I have made it to level four, of the python challenges. Many thanks to all. I truly have been looking for a solid example to follow on the use of the URL module. I don't feel am using it correctly or I am not understanding/using the clue correctly. Here