Eli Bendersky added the comment:

Attaching a new patch that uses Serhiy's suggestion to avoid the duplication, 
and uses Antoine's suggestion to keep socket.family working even if the family 
is an unknown numeric constant.

Note that the latter is challenging to test - I need families the OS knows and 
socket doesn't. Any suggestions are welcome. For the time being the test I 
cooked up is an abomination ;-)

----------
Added file: http://bugs.python.org/file31291/socket-intenum-af.3.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18720>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to