A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/1999-May/095239.html below:

[Python-Dev] 'stackless' python?

[Python-Dev] 'stackless' python? [Python-Dev] 'stackless' python?Christian Tismer tismer at appliedbiometrics.com
Tue May 18 19:23:08 CEST 1999
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 at 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


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4