circuitpython/tests/basics/gen_stack_overflow.py

8 lines
108 B
Python
Raw Normal View History

def gen():
yield from gen()
try:
print(list(gen()))
except RuntimeError:
print("RuntimeError")