Stackless Python and Python 2.x
Michael Abbott
michael at rcp.co.uk
Wed Sep 5 05:15:10 EDT 2001
"Tim Peters" <tim.one at home.com> wrote in
news:mailman.999678188.20206.python-list at python.org:
> What part of Simple Generators does anyone not yet understand?
>
How does the Python interpreter maintain the state of a generator during
calls to yield? Evidently the entire state has to be restored from
wherever it's being kept and plonked back onto the current stack.
Perhaps this is a slightly stupid question, but it's more interesting than
the other "What part of ... do you not understand?" stuff.
More information about the Python-list
mailing list