
Tim Peters wrote:
[Christian Tismer]
... Yup. With a little counting, it was easy to survive:
def main(): global a a=2 thing (5) a=a-1 if a: saved.throw (0)
Did "a" really need to be global here? I hope you see the same behavior without the "global a"; e.g., this Scheme:
Actually, the frame-copying was not enough to make this all behave correctly. Since I didn't change the interpreter, the ceval.c incarnations still had copies to the old frames. The only effect which I achieved with frame copying was that the refcounts were increased correctly. I have to remove the hardware stack copying now. Will try to create a non-recursive version of the interpreter. ciao - chris -- Christian Tismer :^) <mailto:tismer@appliedbiometrics.com> Applied Biometrics GmbH : Have a break! Take a ride on Python's Kaiserin-Augusta-Allee 101 : *Starship* http://starship.python.net 10553 Berlin : PGP key -> http://wwwkeys.pgp.net PGP Fingerprint E182 71C7 1A9D 66E9 9D15 D3CC D4D7 93E2 1FAE F6DF we're tired of banana software - shipped green, ripens at home