Generators versus Coroutines

Dominic nomail at nomail.nomail
Mon Aug 16 13:54:53 EDT 2004


> actual recursive C call of the interpreter. So to have a yield span more
> than one python function would require saving and restoring part of the
> actual C stack - coroutines at the C level - or a rewrite of the interpreter
> to not make the recursive C calls as in Stackless Python.
Well, it works as long as you rewind the stack before
it overflows ;-)

Ciao,
  Dominic



More information about the Python-list mailing list