circuitpython/tests/basics/memoryview_itemsize.py

10 lines
204 B
Python
Raw Normal View History

try:
memoryview(b'a').itemsize
from array import array
except:
print("SKIP")
raise SystemExit
for code in ['b', 'h', 'i', 'l', 'q', 'f', 'd']:
print(memoryview(array(code)).itemsize)