On Tue, Sep 23, 2008 at 10:41 PM, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Sep 23, 2008, at 5:46 PM, Greg Ewing wrote: > >> Lisandro Dalcin wrote: >> >>> Could we extend the 'builtin_types_table' ... PyInt_Type is >>> not there, not PyFloat_Type; >> >> In Pyrex, these are in the builtin_constant_table (with >> type 'type'). The builtin_type_table is only used for >> types having methods that are treated specially. > > I don't see any reason why we wouldn't, as long as they don't > interfere with the c types of the same name (though I don't see why > they would). >
Well, it seems that Robert's isinstance optimization only see the types in 'builtin_types_table', perhaps this could be improved. Anyway, I'll try to populate 'builtin_types_table' and see what happens. -- 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
