bytes_compare_array.py 215 B

123456789
  1. try:
  2. import array
  3. except ImportError:
  4. print("SKIP")
  5. raise SystemExit
  6. print(array.array('b', [1, 2]) in b'\x01\x02\x03')
  7. # CPython gives False here
  8. #print(b"\x01\x02\x03" == array.array("B", [1, 2, 3]))