circuitpython/tests/basics/gen_stack_overflow.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
108 B
Python
Raw Normal View History

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