[docs] [issue16666] docs wrongly imply socket.getaddrinfo takes keyword arguments in 2.x

Ezio Melotti report at bugs.python.org
Thu Dec 13 19:24:53 CET 2012


Ezio Melotti added the comment:

> Personally, I think explicitly stating in the text that the parameters
> are positional-only can't hurt, especially since that's the rarer case,
> no?

OTOH it's an implementation detail that might be changed at some point.
The other option is to use [] in the signature and document the default values in the text, and possibly fix it for 3.4 (or does it work there already?).

----------

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


More information about the docs mailing list