Message172730
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'))] |
|
Date |
User |
Action |
Args |
2012-10-12 08:08:37 | schmir | set | recipients:
+ schmir |
2012-10-12 08:08:37 | schmir | set | messageid: <1350029317.3.0.399140827664.issue16208@psf.upfronthosting.co.za> |
2012-10-12 08:08:37 | schmir | link | issue16208 messages |
2012-10-12 08:08:36 | schmir | create | |
|