[Python-Dev] Re: [Stackless] comments on PEP 219

Greg Ewing greg@cosc.canterbury.ac.nz
Mon, 19 Mar 2001 15:02:55 +1200 (NZST)


Christian Tismer <tismer@tismer.com>:

> But stopping the interpreter is a perfect unwind, and we
> can start again from anywhere.

Hmmm... Let me see if I have this correct.

You can switch from uthread A to uthread B as long
as the current depth of interpreter nesting is the
same as it was when B was last suspended. It doesn't
matter if the interpreter has returned and then
been called again, as long as it's at the same
level of nesting on the C stack.

Is that right? Is that the only restriction?

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+