Message6392

Author amak
Recipients alex.gronholm, amak, basti1302, otmarhumbel, pekka.klarck, pjenvey
Date 2011-02-11.13:44:19
SpamBayes Score 2.2093039e-10
Marked as misclassified No
Message-id <1297431859.83.0.341398528536.issue1697@psf.upfronthosting.co.za>
In-reply-to
Content
[Philip]
> One small problem with this change, we really need a __repr__ on the new getaddrinfo results so they're easier to use
>>> socket.getaddrinfo('localhost', socket.AF_UNSPEC)
[(2, None, 0, 'localhost', <socket._ipv4_address_t instance at 0x2>)]

OK I see the problem. I will check in a fix soon.

[Philip]
> (or why not continue using tuples)?

Because we need to be able differentiate the situation where the address has already been issued by getaddrinfo (and thus java.net.InetAddress.getAllByName), and thus does not need to be looked up again.

This is most important in the case of scoped IPV6 addresses, where the dedicated structure retains scope information.
History
Date User Action Args
2011-02-11 13:44:19amaksetmessageid: <1297431859.83.0.341398528536.issue1697@psf.upfronthosting.co.za>
2011-02-11 13:44:19amaksetrecipients: + amak, otmarhumbel, pekka.klarck, pjenvey, alex.gronholm, basti1302
2011-02-11 13:44:19amaklinkissue1697 messages
2011-02-11 13:44:19amakcreate