_nr and callbacks Re: Is Stackless Python DEAD?

Frederic Giacometti frederic.giacometti at arakne.com
Tue Nov 6 09:58:09 EST 2001


"Michael Hudson" <mwh at python.net> wrote in message
news:uady09pkm.fsf at python.net...
> Martin von Loewis <loewis at informatik.hu-berlin.de> writes:
>
> [schnipp]
> >   * Are the _nr versions functionally completely backwards-compatible?
> >     If not, why? If yes, why is the original version preserved?
>
> I think the originals are just around because the implementation of
> the _nr variants was tricky and Chris needed something to test
> against.  Not sure, though.

>From what I understand in the stackless mechanism, the _nr functions are
used in the Python VM, but cannot be used in C extension callbacks.
In effect, in C extensions (or when embeding Python), Python must return to
the C code after executing the callback. So, distinct hybrid functions,
different from those used by the VM, are still needed.

It's true that stackless introduces an additional level of complexity, and
that its implementation could be lifted up. These can be the actual reasons
why this has not been merged...

FG






More information about the Python-list mailing list