This changeset

changeset:   1333:34aca76e1b9d
parent:      1326:cf41fa30ad5f
user:        Stefan Behnel <[EMAIL PROTECTED]>
date:        Fri Nov 14 19:19:55 2008 +0100
summary:     array size must be set as int, not numeric string

broke mpi4py and petsc4py, where I use stack-allocated arrays where
the size comes from an (external) enumeration, for example:

cdef char name[MPI_MAX_OBJECT_NAME+1]

I had to remove an 'assert' in Cython/Compiler/PyrexTypes.py at
__init__ of class CArrayType.
Additionally, I've added a few tests for all this. I really do not
know how to make the assert smarter by analyzing expressions.

Stefan, please review.



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