On Sep 24, 2008, at 8:00 AM, Lisandro Dalcin wrote: > 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.
Specifically, it operates on anything of type type (which includes extension classes). - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
