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 <rep...@bugs.python.org>
<http://bugs.python.org/issue21406>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to