[Cython] Temps again
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Fri Dec 5 13:51:47 CET 2008
Stefan Behnel wrote:
> So there's a deadly DECREF at the end. The fix is that __pyx_t_2 must
> receive an owned reference in both cases. Fixed now, and lxml builds and
> runs like a charm. :)
>
Thanks, great! (And sorry for causing that error in the first place.)
When it comes to FlattenInListTransform, I was thinking about something
along the lines of an "StatAsExprNode", which would be sort of the
inverse of ExprStatNode: It would contain a block which could contain
"ReturnFromStatAsExprNodeNode" (though a better name is needed :-))
which would yield the value of the statement list, evaluated as an
expression.
To be able to do anything with transforms, something like this is
probably needed.
I'm uncertain about it though, it might be that there are assumptions
everywhere that StatNodes doesn't appear within ExprNodes which would
lead to a new avalanche of hard-to-find and untested-for bugs.
Dag Sverre
More information about the Cython-dev
mailing list