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 sghose
Recipients docs@python, sghose
Date 2013-01-09.21:04:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357765466.06.0.116052267024.issue16911@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-01-09 21:04:26sghosesetrecipients: + sghose, docs@python
2013-01-09 21:04:26sghosesetmessageid: <1357765466.06.0.116052267024.issue16911@psf.upfronthosting.co.za>
2013-01-09 21:04:25sghoselinkissue16911 messages
2013-01-09 21:04:25sghosecreate