On Wed, Apr 22, 2009 at 9:20 PM, Greg Ewing <[email protected]> wrote:
> Robert Bradshaw wrote:
>
>> You have to ignore the type-specific optimizations, because mylist
>> (or a subclass thereof) might override the default behavior.
>
> I'm not sure what's the best thing to do here -- only
> do the optimisations for something declared as exactly
> a list, or for any subclass of list.
>

If you dive into core CPython sources, I would not be surprised to
find places where PyList_Check() is done and PyList_{Set|Get}Item() is
next called.


-- 
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

Reply via email to