You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
6902eeda25
A malloc/realloc fail now throws MemoryError.
7 lines
118 B
Python
7 lines
118 B
Python
l = list(range(10000))
|
|
try:
|
|
100000000 * l
|
|
except MemoryError:
|
|
print('MemoryError')
|
|
print(len(l), l[0], l[-1])
|