[docs] [issue16911] Socket Documentation Error

Ronnie Ghose report at bugs.python.org
Wed Jan 9 22:04:26 CET 2013


New submission from Ronnie Ghose:

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

----------
assignee: docs at python
components: Documentation
messages: 179487
nosy: docs at python, sghose
priority: normal
severity: normal
status: open
title: Socket Documentation Error
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16911>
_______________________________________


More information about the docs mailing list