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/034418.html below:

[Python-Dev] _socket efficiencies ideas

[Python-Dev] _socket efficiencies ideas [Python-Dev] _socket efficiencies ideasGuido van Rossum guido@python.org
Wed, 09 Apr 2003 10:41:37 -0400
> Ick ick. This is putting a bunch of code for a stub resolver into python.
> This stuff is hard to get right - I implemented this on top of pydns, and
> it was a lot of work to get (what I think is) correct, for not very much
> gain.

What I said.

> The idea of either suppressing DNS lookups for all-numeric addresses, or
> some sort of extended API for suppressing DNS lookups might be better,
> but really, isn't this the job of the stub resolver?

Hey, I just figured it out.  The old socket module (Python 2.1 and
before) *did* special-case \d+\.\d+\.\d+\.\d+!  This code was somehow
lost when the IPv6 support was added.  I propose to put it back in, at
least for IPv4 (AF_INET).  Patch anyone?

--Guido van Rossum (home page: http://www.python.org/~guido/)



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