Message217691
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") |
|
Date |
User |
Action |
Args |
2014-05-01 12:17:47 | pitrou | set | recipients:
+ pitrou, barry, eli.bendersky, neologix, ethan.furman |
2014-05-01 12:17:47 | pitrou | set | messageid: <1398946667.03.0.621371730374.issue21406@psf.upfronthosting.co.za> |
2014-05-01 12:17:46 | pitrou | link | issue21406 messages |
2014-05-01 12:17:46 | pitrou | create | |
|