circuitpython/tests/basics/array_construct2.py

9 lines
204 B
Python

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