2 May
2003
2 May
'03
1:50 p.m.
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