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?