bytes_add_array.py 223 B

1234567891011
  1. # test bytes + other
  2. try:
  3. import array
  4. except ImportError:
  5. print("SKIP")
  6. raise SystemExit
  7. # should be byteorder-neutral
  8. print(b"123" + array.array('h', [0x1515]))
  9. print(b"\x01\x02" + array.array('b', [1, 2]))