Top.Mail.Ru
Python
? ?
LiveJournal for python.
View:Personal Journal.
View:Friends.
View:Calendar.
Missed some entries? Then simply jump to the previous day or the next day.

Thursday, August 9th, 2007

Subject:Getting urlopen to time out?
Time:2:49 am.
Hi, I'm new to the community and am trying to learn a little Python and to write some simple scripts.

I'm using urllib.urlopen to fetch the contents of a Web page, but right now the function is waiting indefinitely for the page. How can I get the function (or another one like it) to timeout?
Comments: Read 2 orAdd Your Own.

LiveJournal for python.

View:User Info.
View:Friends.
View:Calendar.
View:Memories.
Missed some entries? Then simply jump to the previous day or the next day.

Image