Lisandro Dalcin wrote:
> Stefan, please review this patch. This fixes the recently added
> tests/run/dictintindex.pyx testcase.
>
> I had to add a new utility code, but I could not figure out how to
> emit that utility code for the particular case of 'del obj[i]', I
> mean, I do not know how to differentiate a setitem from a delitem.
> Apart from that, the patch seems to work and all the testsuite pass.
>   
Since this summer it is also possible to add utility code in the code 
generation phase, so you can just move things there. Just do

code.globalstate.use_utility_code(...)

instead. (Calling env.use_utility_code should probably be refactored 
project-wide to make the code a little bit cleaner and more consistent; 
but, well, as things work as they are...).

Looking at your patch it should then be trivial to fix this.

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

Reply via email to