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@python components: Documentation messages: 179487 nosy: docs@python, sghose priority: normal severity: normal status: open title: Socket Documentation Error versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16911> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com