circuitpython/tests/basics/array_construct2.py
2021-05-03 14:01:18 -07:00

12 lines
278 B
Python

try:
from uarray import array
except ImportError:
try:
from array import array
except ImportError:
print("SKIP")
raise SystemExit
# construct from something with unknown length (requires generators)
print(array('i', (i for i in range(10))))