Message250339
Hello again. The patch I committed says BTPROTO_SCO accepts a bytes-like object. However I suspect it is actually restricted to bytes only:
>>> s = socket(AF_BLUETOOTH, SOCK_SEQPACKET, BTPROTO_SCO)
>>> s.bind(bytearray(b"12:23:34:45:56:67"))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: getsockaddrarg: wrong format
>>> s.bind(b"12:23:34:45:56:67")
If you can confirm this, I will update the documentation. |
|
Date |
User |
Action |
Args |
2015-09-09 22:52:01 | martin.panter | set | recipients:
+ martin.panter, r.david.murray, docs@python, python-dev, berker.peksag, Tim.Tisdall |
2015-09-09 22:52:01 | martin.panter | set | messageid: <1441839121.84.0.674591159497.issue24984@psf.upfronthosting.co.za> |
2015-09-09 22:52:01 | martin.panter | link | issue24984 messages |
2015-09-09 22:52:01 | martin.panter | create | |
|