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

Eli Bendersky report at bugs.python.org
Wed Aug 14 16:03:12 CEST 2013


Eli Bendersky added the comment:

Christian, this is an interesting idea - but I suggest we review it once we actually get to convert "many modules". For the time being the manual listing is gone in the recent patch, and for a number of constant families in the same module (i.e. SOCK_* that will be added here) we can combine the lookup into a single loop - so no need walking the module dict multiple times.

----------

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


More information about the Python-bugs-list mailing list