10 lines
137 B
Python
10 lines
137 B
Python
|
# test deeply recursive generators
|
||
|
|
||
|
def gen():
|
||
|
yield from gen()
|
||
|
|
||
|
try:
|
||
|
list(gen())
|
||
|
except RuntimeError:
|
||
|
print('RuntimeError')
|