Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PySerial "write" should accept "bytearray"

1 view
Skip to first unread message

John Nagle

unread,
Feb 14, 2009, 4:19:34 PM2/14/09
to
PySerial, which is basically a binary input/output system, is
still requiring "str" instead of "bytearray", even under Python 2.6.
For "file-like objects", "write" functions are supposed to accept
"bytearray" now, and "read" functions should return a "bytearray".

John Nagle

Tino Wildenhain

unread,
Feb 14, 2009, 3:54:25 PM2/14/09
to John Nagle, pytho...@python.org
I'm sure patches are welcome. And did you copy the pyserial author?

Regards
Tino

Grant Edwards

unread,
Feb 15, 2009, 12:25:12 AM2/15/09
to

I'm sure a patch would be happily accepted. I don't use 2.6
yet, and I don't know if the other people who've worked on
pyserial do either.

--
Grant

0 new messages