micropython/tests/basics/array_construct_endian.py

7 lines
142 B
Python
Raw Normal View History

# test construction of array.array from different objects
from array import array
# raw copy from bytes, bytearray
print(array('h', b'12'))