Bytearray support
Posted: Fri Nov 28, 2014 4:39 pm
Not sure if this has been brought up already but:
The help page of micropython's bytearray gives me:
not a lot here....
So am I correct that micropython's bytearray implementation differs from python 2.7 / 3.x?
Code: Select all
>>> a
bytearray(b'\x01\x02')
>>> b
bytearray(b'\x01\x02')
>>> a+b
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand types for binary operator: 'bytearray', 'bytearray'
Code: Select all
>>> help(bytearray)
object <class 'bytearray'> is of type type
append -- <function>
So am I correct that micropython's bytearray implementation differs from python 2.7 / 3.x?