Message6392
[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. |
|
Date |
User |
Action |
Args |
2011-02-11 13:44:19 | amak | set | messageid: <1297431859.83.0.341398528536.issue1697@psf.upfronthosting.co.za> |
2011-02-11 13:44:19 | amak | set | recipients:
+ amak, otmarhumbel, pekka.klarck, pjenvey, alex.gronholm, basti1302 |
2011-02-11 13:44:19 | amak | link | issue1697 messages |
2011-02-11 13:44:19 | amak | create | |
|