[issue21406] Some socket constants are not enums
Antoine Pitrou
report at bugs.python.org
Thu May 1 22:01:03 CEST 2014
Antoine Pitrou added the comment:
Ah, I missed the fact that the "family" and "type" properties are re-computed on the fly; I thought the enum values where stored on the socket object.
Then it makes it harder to do the same for "proto", since there are family-specific namespaces with colliding values, indeed.
>>> socket.IPPROTO_ICMP
1
>>> socket.BTPROTO_HCI
1
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21406>
_______________________________________
More information about the Python-bugs-list
mailing list