fork download
  1. def test():
  2. a = test()
  3. yield 1
  4. while True:
  5. yield next(a)
  6.  
  7. a = test()
  8. for i in range(10):
  9. print(next(a))
  10.  
Success #stdin #stdout 0.02s 5760KB
stdin
Standard input is empty
stdout
1
1
1
1
1
1
1
1
1
1