bytes_construct.py 189 B

123456789
  1. # test construction of bytearray from array with float type
  2. try:
  3. from array import array
  4. except ImportError:
  5. print("SKIP")
  6. raise SystemExit
  7. print(bytes(array('f', [1, 2.3])))