[issue8866] socket.getaddrinfo() should support keyword arguments

2010-08-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Committed in r84143 including the doc change as suggested by Antoine. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue8866] socket.getaddrinfo() should support keyword arguments

2010-08-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Isn't that exactly as it was before? Being now possible to specify single keyword arguments aren't "[" brackets necessary? -- ___ Python tracker ___

[issue8866] socket.getaddrinfo() should support keyword arguments

2010-08-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: -.. function:: getaddrinfo(host, port, family=0, socktype=0, proto=0, flags=0) +.. function:: getaddrinfo(host, port[, family[, type[, proto[, flags) You should keep using the new documentation convention, that is: .. function:: getaddrinfo(host, port, fam

[issue8866] socket.getaddrinfo() should support keyword arguments

2010-08-14 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Removed file: http://bugs.python.org/file17524/kwargs.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8866] socket.getaddrinfo() should support keyword arguments

2010-08-14 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Updated patch in attachment includes tests and doc update. I decided to rename "socktype" argument in "type", since that's the name adopted all across the socket module API: socket.socket([family[, type[, proto]]]) socket.socket.type socket.socketpair([fam

[issue8866] socket.getaddrinfo() should support keyword arguments

2010-06-02 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Created issue 8881 to treat the named tuples issue separately. -- ___ Python tracker ___ ___ Pyth

[issue8866] socket.getaddrinfo() should support keyword arguments

2010-06-02 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: The patch in attachment implements keyword arguments. -- keywords: +patch Added file: http://bugs.python.org/file17524/kwargs.patch ___ Python tracker __

[issue8866] socket.getaddrinfo() should support keyword arguments

2010-05-31 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: ...also, the returning tuples could be named tuples instead. -- ___ Python tracker ___ ___ Python

[issue8866] socket.getaddrinfo() should support keyword arguments

2010-05-31 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : As of now socket.getaddrinfo() only supports positional arguments, so that if I want to, say, specify "flags" argument I'm forced to specify "0" for other missing arguments: >>> socket.getaddrinfo("www.python.org", 0, 0, 0, socket.SOL_TCP) [(2, 1, 6, '',