In general, for Py >= 2.6, we sould invalidate the type cache every time we set something in the 'tp_dict' field. 'Pyx_SetVtable()' adds stuff there. However, this call is made immediately after 'PyType_Ready()', so at first it seems the call to 'Pyx_TypeModified()' is not needed. But I'm not completelly sure about this, and anyway perhaps the safest thing to do is to invalidate the cache,
Comments? BTW, I've already have a patch for this. -- 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
