circuitpython/tests/basics/array_construct2.py

12 lines
278 B
Python
Raw Normal View History

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))))