PySerial "write" should accept "bytearray"
Grant Edwards
grante at visi.com
Sun Feb 15 00:25:12 EST 2009
On 2009-02-14, John Nagle <nagle at animats.com> wrote:
> 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".
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
More information about the Python-list
mailing list