This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author schmir
Recipients schmir
Date 2012-10-12.08:08:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1350029317.3.0.399140827664.issue16208@psf.upfronthosting.co.za>
In-reply-to
Content
I'm running the following code on python 2.7.3 on a 64 bit linux.

import socket
print "has_ipv6", socket.has_ipv6

res = socket.getaddrinfo("python.org", 80, socket.AF_INET6, socket.SOCK_STREAM)
print "python.org is", res

With IPv6 enabled, I get the following output:
has_ipv6 True
python.org is [(10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0))]

With IPv6 disabled (i.e I ran ./configure --disable-ipv6), I get:

has_ipv6 False
python.org is [(10, 1, 6, '', (10, '\x00P\x00\x00\x00\x00 \x01\x08\x88 \x00\x00\r'))]
History
Date User Action Args
2012-10-12 08:08:37schmirsetrecipients: + schmir
2012-10-12 08:08:37schmirsetmessageid: <1350029317.3.0.399140827664.issue16208@psf.upfronthosting.co.za>
2012-10-12 08:08:37schmirlinkissue16208 messages
2012-10-12 08:08:36schmircreate