[Tutor] following the chain

Goldie, Josh josh.goldie at mirant.com
Tue May 10 20:44:01 CEST 2005


Try:
print X.readline()

-----Original Message-----
From: tutor-bounces at python.org [mailto:tutor-bounces at python.org] 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 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 is how I have been trying to use urlopen()

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: 
  <addinfourl at 585200 whose fp = <socket._fileobject object at 
0x91068>>
Have I used the urlopen() correctly?
What is the meaning of the output?

_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list