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
Date 2014-05-01.12:17:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398946667.03.0.621371730374.issue21406@psf.upfronthosting.co.za>
In-reply-to
Content
Many constants in the socket module, are not int enums. Examples are socket.CAN_BCM, socket.BTPROTO_RFCOMM, etc.

For example when creating a bluetooth socket, you may get the following repr():

>>> socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM)
<socket.socket fd=3, family=AddressFamily.AF_BLUETOOTH, type=SocketType.SOCK_STREAM, proto=3, laddr=('00:00:00:00:00:00', 0), raddr=('00:00:00:00:00:00', 0)>

(notice the integer "proto")
History
Date User Action Args
2014-05-01 12:17:47pitrousetrecipients: + pitrou, barry, eli.bendersky, neologix, ethan.furman
2014-05-01 12:17:47pitrousetmessageid: <1398946667.03.0.621371730374.issue21406@psf.upfronthosting.co.za>
2014-05-01 12:17:46pitroulinkissue21406 messages
2014-05-01 12:17:46pitroucreate