[issue8881] socket.getaddrinfo() should return named tuples

2018-01-27 Thread Cheryl Sabella
Cheryl Sabella added the comment: This one looks to be partly done due to #18720 and enums. >>> for item in socket.getaddrinfo(None, 0): ... print(item) ... (, , 6, '', ('::1', 0, 0, 0)) (, , 17, '', ('::1', 0, 0, 0)) (, , 0, '', ('::1', 0, 0, 0)) (, , 6, '', ('127.0.0.1', 0)) (, , 17,

[issue8881] socket.getaddrinfo() should return named tuples

2013-11-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue8881] socket.getaddrinfo() should return named tuples

2012-07-07 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8881] socket.getaddrinfo() should return named tuples

2012-07-07 Thread Floris Bruynooghe
Floris Bruynooghe added the comment: Attached in a patch for this, I've also changed the version to 3.4 since this is a feature and therefore probably too late to go in 3.3. Please let me know if anything is inadequate. -- keywords: +patch versions: +Python 3.4 -Python 3.3 Added file

[issue8881] socket.getaddrinfo() should return named tuples

2012-01-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: A reasonable request indeed. -- stage: -> needs patch type: -> enhancement versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ __

[issue8881] socket.getaddrinfo() should return named tuples

2012-01-13 Thread Floris Bruynooghe
Floris Bruynooghe added the comment: I think the part which could possibly a problem is addressed in http://hg.python.org/cpython/rev/384f73a104e9/. Bearing in mind that direct usage for string interpolation is a pretty strange use for the result of getaddrinfo. -- nosy: +flub

[issue8881] socket.getaddrinfo() should return named tuples

2010-06-02 Thread Eric Smith
Eric Smith added the comment: Keep in mind this isn't an entirely backwards compatible change. See issue 8413, for example. -- nosy: +eric.smith ___ Python tracker ___ _

[issue8881] socket.getaddrinfo() should return named tuples

2010-06-02 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : As of right now socket.getaddrinfo() returns a sequence of 5-tuples reflecting family, type, protocol, canonname, and address of a socket: >>> socket.getaddrinfo(None, 0) [(10, 1, 6, '', ('::1', 0, 0, 0)), (10, 2, 17, '', ('::1', 0, 0, 0)), (10, 3, 0, ''