[Python-Dev] _tkinter problem with Stackless
Martin v. Loewis
martin@v.loewis.de
27 May 2002 08:19:39 +0200
Greg Ewing <greg@cosc.canterbury.ac.nz> writes:
> Am I right in thinking that a problem can only
> occur if a tasklet switch occurs between the time
> the local variable is created and the time it's
> used? If the same tasklet is running both times,
> the stack should be back in it's right place.
Not necessarily. Christian segments the stack into slices, and only
keeps the top-of-stack slice on the stack. So even within a single
tasklet, you cannot refer to stack variables of your callers, if those
callers are far away.
Regards,
Martin