Santoso Wijaya <santoso.wij...@gmail.com> added the comment:

If `write(self, data)` is expected to receive `data` as a memoryview object, 
then it's up to pyserial to use `data.tobytes()` instead of `bytes(data)`, 
though this does not seem to be documented in the io module doc.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12340>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to