[issue21406] Some socket constants are not enums
Charles-François Natali
report at bugs.python.org
Thu May 1 19:33:35 CEST 2014
Charles-François Natali added the comment:
Enum are for, well, enumerated values, so for values within a finite
and known range (like days, cards, etc).
OTOH, I'm not sure all socket constants could be categorized like this.
It makes sense for address families, especially since they're used so
much, but when it comes to e.g. SO_REUSEADDR or BTPROTO_RFCOMM, I'm
not sure how we could categorize them.
Unless would declare them all in a "SocketConstant" Enum?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21406>
_______________________________________
More information about the Python-bugs-list
mailing list