On Wed, Oct 15, 2008 at 5:31 PM, Dag Sverre Seljebotn <[EMAIL PROTECTED]> wrote: > Well, you seem to have a better grasp on this stuff than me so I'll > leave it for you :-) You are right, it is optimization stuff going wrong > -- "entry.used" isn't honoured by the code in ModuleNode.py initializing > the entries to Py_None. Just search for the comments inserted in the > .c-file at that point in ModuleNode.py and it will put you right on > track for where to insert the if-test.
I believe I will push my original patch with a BIG comment about what is going one in Optimize.py > As for the tests, I suppose all of this is really difficult to test for > (as possibly the doctests would interfer a lot with the refcount of > Py_None and so on), so actually I'd agree with you if you didn't bother > with them. BTW, perhaps if we could support the --clenaup option as a compiler directive, then I would be able to write a rether good testcase. Do this request make sense, I mean, adding a 'cleanup' directive enabling the highest level of cleanup? I ALWAY build my code with cleanup enabled, so I would love to be hable to use in my preambles:: #cython: cleanup=True -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
