circuitpython/tests/basics/bytes_add_bytearray.py
2021-04-28 12:33:39 -07:00

5 lines
120 B
Python

# test bytes + bytearray
print(b"123" + bytearray(2))
print(b"" + bytearray(1)) # LHS is empty but can't be optimised