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

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

print(b"123" + b"") # RHS is empty, can be optimised
print(b"" + b"123") # LHS is empty, can be optimised
print(b"" + bytearray(1)) # LHS is empty but can't be optimised