circuitpython/tests/basics/gen_stack_overflow.py

8 lines
108 B
Python

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