Stackless Python and Python 2.x
Paul Rubin
phr-n2001 at nightsong.com
Sat Sep 1 19:10:59 EDT 2001
"Tim Peters" <tim.one at home.com> writes:
> Neil Schemenauer discovered that it was possible to code the "traditional"
> coroutine examples using simple generators instead, and being able to
> explicitly resume a generator object independent of magical control context
> was key to that (an ability Icon generators and CLU iterators don't have, so
> the limitations of the latter don't necessarily apply to Python's flavor of
> the idea too).
How is it possible to implement resumable generators without using
coroutines, continuations, or something equivalent?
More information about the Python-list
mailing list