python2.3/sockets/urllib2/timeout

Raymond Hettinger vze4rx4y at verizon.net
Fri Jun 13 08:49:03 CEST 2003


> according to the documentation, sockets now have a timeout value in python
> 2.3. But does urllib2 make use of it? Is there way to specifiy this value
> for urllib2?

Not directly, not yet.
I'm currently looking at PEP 42 feature request to put timeout
methods in the high level net modules.

In the meantime, socket does provide (starting in Py2.3) a function
to set a default timeout that will apply to all callers including urllib2.


Raymond Hettinger






More information about the Python-list mailing list