This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients barry, eli.bendersky, ethan.furman, neologix, pitrou, r.david.murray
Date 2014-05-01.20:01:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398974463.65.0.340960918795.issue21406@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-05-01 20:01:03pitrousetrecipients: + pitrou, barry, r.david.murray, eli.bendersky, neologix, ethan.furman
2014-05-01 20:01:03pitrousetmessageid: <1398974463.65.0.340960918795.issue21406@psf.upfronthosting.co.za>
2014-05-01 20:01:03pitroulinkissue21406 messages
2014-05-01 20:01:03pitroucreate