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

Neil Schemenauer nas@arctrix.com
Fri, 16 Mar 2001 03:37:33 -0800


On Fri, Mar 16, 2001 at 02:02:08AM -0500, Tim Peters wrote:
> Does Jython have an explicit object akin to CPython's execution frame?  If
> so, 96.3% of what's needed for generators is already there.

FWIW, I think I almost have generators working after making
fairly minor changes to frameobject.c and ceval.c.  The only
remaining problem is that ceval likes to nuke f_valuestack.  The
hairy WHY_* logic is making this hard to fix.  Based on all the
conditionals it looks like it would be similer to put this code
in the switch statement.  That would probably speed up the
interpreter to boot.  Am I missing something or should I give it
a try?

  Neil