array_construct_endian.py 210 B

12345678910
  1. # test construction of array.array from different objects
  2. try:
  3. from array import array
  4. except ImportError:
  5. print("SKIP")
  6. raise SystemExit
  7. # raw copy from bytes, bytearray
  8. print(array('h', b'12'))