Dag, this change was required for the case you pass --cleanup to Cython. This flag is surely not used in runtests.py, so any of us never noticed that the generated code (when --cleanup is used) do not compile...
Remember that cleanup funtions are registered with "atexit" to run at Python shutdown... I do not think that is a good place to be tracking references.... BTW, I'll try to enable refnanny for the module init function. Basically, we should GIVEREF on module globals before finishing the refcount context. I'll give a try. On Sat, Feb 21, 2009 at 7:02 PM, Dag Sverre Seljebotn <[email protected]> wrote: > Hi, I just noticed your commit. I'm fine with it, I was just wondering if > you could write a line or two about the reasons behind it? > > Also, I'm worried that user code in module scope will still be refnannied in > that function, so you cannot remove the refnanny initialization for that > function altogether... Did you work around that? (Didn't look at it in close > detail.) > > -- > Dag Sverre > -- 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
