[issue18720] Switch suitable constants in the socket module to IntEnum

Eli Bendersky report at bugs.python.org
Wed Aug 14 15:40:47 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue18720>
_______________________________________


More information about the Python-bugs-list mailing list