summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/bytes_add.py
blob: 1288d5ac33b96eb6647c3082998999eeed55e698 (plain) (blame)
1
2
3
4
5
6
7
8
9
# test bytes + other

print(b"123" + b"456")
print(b"123" + bytearray(2))

import array

print(b"123" + array.array('i', [1]))
print(b"\x01\x02" + array.array('b', [1, 2]))