Author douglas
Recipients douglas
Date 2008-01-28.21:51:13
SpamBayes Score 0.00419003
Marked as misclassified No
Message-id <1201557075.89.0.233826065538.issue1958@psf.upfronthosting.co.za>
In-reply-to
Content
The following code calls getadddrinfo and returns invalid addresses
(IPv6 addresses) when Python has been compiled with IPv6 support and the
system kernel does not support IPv6.

import socket
for res in socket.getaddrinfo("localhost", "80", 0, socket.SOCK_STREAM):
    print "%r" % (res,)

(2, 1, 6, '', ('127.0.0.1', 80))
(10, 1, 6, '', ('::1', 80, 0, 0))
History
Date User Action Args
2008-01-28 21:51:16douglassetspambayes_score: 0.00419003 -> 0.00419003
recipients: + douglas
2008-01-28 21:51:15douglassetspambayes_score: 0.00419003 -> 0.00419003
messageid: <1201557075.89.0.233826065538.issue1958@psf.upfronthosting.co.za>
2008-01-28 21:51:14douglaslinkissue1958 messages
2008-01-28 21:51:13douglascreate