[Tutor] urllib2.urlopen(....., timeout=)

Ray Jones crawlzone at gmail.com
Fri Sep 7 17:58:50 CEST 2012

On 09/07/2012 08:33 AM, Steven D'Aprano wrote:
> On 08/09/12 01:16, Ray Jones wrote:
>> 2.7.3
>> According to the docs, urlopen has a timeout capability. But it says
>> that the timeout = '<object object>'
> Which docs are those? According to these docs:
> http://docs.python.org/library/urllib2.html
> "The optional timeout parameter specifies a timeout in seconds for
> blocking operations like the connection attempt (if not specified,
> the global default timeout setting will be used). This actually
> only works for HTTP, HTTPS and FTP connections."
I was looking at the doc strings(?) in iPython's help system.

> Can you give an actual working example of what you have tried, what
> you expect to happen, and what actually happens?
See my response to Dave Angel, and thanks for the reply.


More information about the Tutor mailing list