[Stackless-checkins] r47232 - stackless/trunk/Stackless/core/stacklesseval.c
richard.tew
python-checkins at python.org
Wed Jul 5 00:04:09 CEST 2006
Author: richard.tew
Date: Wed Jul 5 00:04:06 2006
New Revision: 47232
Modified:
stackless/trunk/Stackless/core/stacklesseval.c
Log:
Ported some additional generator sending code, into the custom stackless version. It turns out this is needed, otherwise a POP_TOP operation chews up the iterator, and causes a crash when whatever comes next is iterated on. I assumed this stack changing did not require, because of the way Stackless passes around return values - that is, it was enough to pass it around through the unwind object.
Modified: stackless/trunk/Stackless/core/stacklesseval.c
==============================================================================
--- stackless/trunk/Stackless/core/stacklesseval.c (original)
+++ stackless/trunk/Stackless/core/stacklesseval.c Wed Jul 5 00:04:06 2006
@@ -464,6 +464,7 @@
/* Push arg onto the frame's value stack */
retval = arg ? arg : Py_None;
Py_INCREF(retval);
+ *(f->f_stacktop++) = retval;
}
/* XXX give the patch to python-dev */
_______________________________________________
Stackless-checkins mailing list
Stackless-checkins at stackless.com
http://www.stackless.com/mailman/listinfo/stackless-checkins
More information about the Stackless-checkins
mailing list