On Wed, Apr 22, 2009 at 10:37 PM, Greg Ewing
<[email protected]> wrote:
> Lisandro Dalcin wrote:
>
>> 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.
>
> But that's a dynamic check, which might be all right
> for Cython, but it's not the way Pyrex does things.
>

Did you noticed I'm talking about core CPython, not Cython?

Anyway, IMHO, Cython/Pyrex should optimize ONLY if PyList_CheckExact()
returns 1... Just to avoid surprises...



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