Message179487
Running the example given in the docs gives the following:
In [8]: socket.getaddrinfo('www.python.org',80)
Out[8]:
[(2, 1, 6, '', ('82.94.164.162', 80)),
(2, 2, 17, '', ('82.94.164.162', 80)),
(2, 3, 0, '', ('82.94.164.162', 80)),
(10, 1, 6, '', ('2001:888:2000:d::a2', 80, 0, 0)),
(10, 2, 17, '', ('2001:888:2000:d::a2', 80, 0, 0)),
(10, 3, 0, '', ('2001:888:2000:d::a2', 80, 0, 0))]
In [9]: socket.getaddrinfo('www.python.org',80,socket.SOL_TCP)
---------------------------------------------------------------------------
gaierror Traceback (most recent call last)
/home/sghose/ADAPT/dns/<ipython-input-9-faa58a2f7926> in <module>()
----> 1 socket.getaddrinfo('www.python.org',80,socket.SOL_TCP)
gaierror: [Errno -6] ai_family not supported |
|
Date |
User |
Action |
Args |
2013-01-09 21:04:26 | sghose | set | recipients:
+ sghose, docs@python |
2013-01-09 21:04:26 | sghose | set | messageid: <1357765466.06.0.116052267024.issue16911@psf.upfronthosting.co.za> |
2013-01-09 21:04:25 | sghose | link | issue16911 messages |
2013-01-09 21:04:25 | sghose | create | |
|