[Cython] cython-devel: array declaration problems with current trunk
Stefan Behnel
stefan_ml at behnel.de
Tue Aug 5 20:02:00 CEST 2008
Hi,
Dag Sverre Seljebotn wrote:
> Lisandro Dalcin wrote:
>> Dag, I still have problems with this (the 'sizeof(int[3])' part):
>>
>> cdef inline object newarray_int3(int n, int (**p)[3]):
>> if n < 0: n = 0
>> cdef int (*array)[3] # = NULL ## XXX
>> cdef object ob = allocate(n*sizeof(int[3]), <void**>&array)
>> ^
>> ------------------------------------------------------------
>>
>> /u/dalcinl/Devel/Cython/mpi4py-dev/src/MPI/asarray.pxi:13:44: Expected:
>> type
>>
>> Please, do not blame me for being too pedantic. I have to deal with
>> this because I need to wrap some MPI calls like the following:
>
> No no, this is great help for me!; these things happen because of cases I
> didn't consider where the [] notation is used.
Plus, they give us valuable test cases that make sure this is the last time we
break these things by accident.
Stefan
More information about the Cython-dev
mailing list