Files
micropython/tests/basics/memoryerror.py
2014-04-15 11:25:36 +01:00

8 lines
125 B
Python

l = list(range(10000))
hex(1)
try:
100000000 * l
except MemoryError:
print('MemoryError')
print(len(l), l[0], l[-1])