[Python-Dev] _socket efficiencies ideas
Anthony Baxter
Anthony Baxter <anthony@interlink.com.au>
Fri, 02 May 2003 18:20:17 +1000
>>> Guido van Rossum wrote
> 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?
https://sourceforge.net/tracker/index.php?func=detail&aid=731209&group_id=5470&atid=305470
Unfortunately the code still goes through the idna encoding module - this
is some overhead that it would be nice to avoid for all-numeric addresses.
Anthony