On 3/23/06, Kermit Rose <[EMAIL PROTECTED]> wrote:
> And I had not yet found out about the read function, so even if I had
> understood
> that urlopen returned a file , I still would not have know how to see the
> contents
> of that file.
>
> I will search for the read function in the tutorial. What hints can you give
> me for
> finding it quickly in the tutorial?
You hardly need to read about the read function. Just use it:
print urlopen("http://www.kermitrose.com").read()
or
Webfile = urlopen("http://www.kermitrose.com").read()
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor