[Python-Dev] Time-out in URL Open

Facundo Batista facundobatista at gmail.com
Mon Jul 3 20:07:20 CEST 2006


I need a timeout in urlopen, just to be able to make:

>>> urllib2.urlopen("http://no.host.org", timeout=2)

This is actually not possible, but I'll make it work.

I want to know, please, if this is useful in general, for me to post a
patch in SF.

Regards,

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/


More information about the Python-Dev mailing list