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/2003-April/034426.html below:

[Python-Dev] _socket efficiencies ideas

[Python-Dev] _socket efficiencies ideas [Python-Dev] _socket efficiencies ideasSkip Montanaro skip@pobox.com
Wed, 9 Apr 2003 13:44:51 -0500
    Martin> It turns out that Python doesn't need to 100% detect numeric
    Martin> addresses, as long as it would not classify addresses as numeric
    Martin> which aren't.  Perhaps it is even possible to leave the "is
    Martin> numeric" test to the implementation of getaddrinfo, i.e. calling
    Martin> it twice (try numeric first, then try resolving the name)?

Can a top-level domain be all digits?  If not, why not assume numeric if
re.search(r"\.\d+$", addr) is not None?

Skip



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