micropython/tests/float/bytes_construct.py

6 lines
121 B
Python

# test construction of bytearray from array with float type
from array import array
print(bytes(array('f', [1, 2.3])))