In 16 def for in yield In 19 Out 19 generator object at 0x1673f80 In 2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
In [16]: def q():
for i in q():
yield q()
....:
In [19]: q()
Out[19]: <generator object at 0x1673f80>
In [20]: q().next()
........
........
RuntimeError: maximum recursion depth exceeded