On Tue, Feb 24, 2009 at 4:26 PM, Stefan Behnel <[email protected]> wrote: > Dag Sverre Seljebotn wrote: >> >> If it turns out these reference cycles will be a problem, I think we >> could always change Cython to *not* use initialized constants in __del__ >> and __dealloc__? (i.e. construct them on need; meaning a small >> performance penalty). > > Plus, we could generate an external closure for a type (not for the > instance, just the type object) that keeps all referenced global values. > The type would then reference that instead of the module. >
Where would you hold a reference to such closure? > I so like the idea of implementing these things under the hood, instead of > requiring users to rewrite their code. > Unless these things are related to bytes/unicode management, right? Just joking ;-) ... -- 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
