A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-July/066970.html below:

[Python-Dev] Time-out in URL Open

[Python-Dev] Time-out in URL Openskip at pobox.com skip at pobox.com
Mon Jul 3 23:30:11 CEST 2006
    Facundo> I need a timeout in urlopen, just to be able to make:

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

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

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

As others have posted, yes, it would be useful for 2.6.  However, you should
consider how that might be applied to the other Internet service modules
(ftplib, telnetlib, urllib, etc).

Skip
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4