On May 29, 2006, at 23:24, Klaas-Jan Stol wrote:

mycoro."reset"() # reset the coroutine
corresult = mycoro() # 1 again (not 4)

But maybe this was already possible, I don't know.

Not yet. But it should be simple and straightforward to implement it. During the first invoke() the coroutine is allocating its context stuff (co->ctx, ctx->lex_pad, ctx->current_cont). .reset() would just free these items and set C< co->ctx > to NULL.

leo

Reply via email to