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 Mikel.Ward
Recipients Mikel.Ward, docs@python
Date 2012-12-11.23:00:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The docs for 2.6 and 2.7 say socket.getaddrinfo takes keyword arguments.

> socket.getaddrinfo(host, port, family=0, socktype=0, proto=0, flags=0)

But that doesn't actually work in Python 2.7.

$ ./python 
Python 2.7.3+ (2.7:ec4ea40be2f6, Dec 11 2012, 14:43:35) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.

>>> import socket
>>> s = socket.getaddrinfo('localhost', 999, family=socket.AF_INET)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: getaddrinfo() takes no keyword arguments

Looks like it was introduced in 61999:c963478b9092.
Date User Action Args
2012-12-11 23:00:09Mikel.Wardsetrecipients: + Mikel.Ward, docs@python
2012-12-11 23:00:09Mikel.Wardsetmessageid: <>
2012-12-11 23:00:09Mikel.Wardlinkissue16666 messages
2012-12-11 23:00:09Mikel.Wardcreate