[Cython] Temps again

Dag Sverre Seljebotn dagss at student.matnat.uio.no
Fri Dec 5 13:59:52 CET 2008


Dag Sverre Seljebotn wrote:
> 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.
>   
Actually, "SetBlockResultNode" could give the same power, it just 
requires that the transforms write code without "gotos". But it would be 
much easier to implement.

Dag Sverre


More information about the Cython-dev mailing list