[Cython] array assignment
Greg Ewing
greg.ewing at canterbury.ac.nz
Sat Oct 11 08:25:49 CEST 2008
Stefan Behnel wrote:
> Here, the RHS makes sense to me. Would
>
> cdef double *a = (0.5, 0.3, 0.1, 0.1)
>
> also make sense to others?
I think it would be reasonable to allow either list or
tuple notation to be used, but if there is only to be
one, it should probably be a list, on the grounds that
a C array is more of a homogeneous structure than a
heterogeneous one.
--
Greg
More information about the Cython-dev
mailing list