Developments:

I thought I should announce a change I did to generate_disposal_code. It 
now takes two parameters, "decref" and "free_temp", which both defaults 
to True, and which can be toggled. decref==False is a synonym for 
generate_post_assignment_code.

Furthermore, in DebugFlags I've added a new flag which takes advantage 
of the interleaving with code generation that now goes on, and outputs 
comments for when the new temps are allocated/deallocated. (Note that 
only vertical position counts for this, it isn't related to flow of C 
source -- so it looks strange with if-tests etc., but one gets used to it.)

I've left this ON by default, since we're in a critical phase regarding 
temps. Feel free to change that though. But getting temp 
allocation/deallocation right is crucial in order to get the right 
objects DECREF-ed on return statements.

It should definitely be toggled off before release though.

-- 
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to