PySerial "write" should accept "bytearray"

Grant Edwards grante at
Sun Feb 15 06:25:12 CET 2009

On 2009-02-14, John Nagle <nagle at> 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.


More information about the Python-list mailing list