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 martin.panter
Recipients Tim.Tisdall, berker.peksag, docs@python, martin.panter, python-dev, r.david.murray
Date 2015-09-09.22:52:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441839121.84.0.674591159497.issue24984@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-09-09 22:52:01martin.pantersetrecipients: + martin.panter, r.david.murray, docs@python, python-dev, berker.peksag, Tim.Tisdall
2015-09-09 22:52:01martin.pantersetmessageid: <1441839121.84.0.674591159497.issue24984@psf.upfronthosting.co.za>
2015-09-09 22:52:01martin.panterlinkissue24984 messages
2015-09-09 22:52:01martin.pantercreate