[Python-Dev] _socket efficiencies ideas

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 10 Apr 2003 12:31:34 +1200 (NZST)


Anthony Baxter <anthony@interlink.com.au>:

> 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?

Seems to me the basic problem is that we're representing
to completely different things -- a DNS name and a raw
IP address -- the same way, i.e. as a string.

A raw IP address should (at least optionally) be represented 
by something different, such as a tuple of ints.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+