[Cython] Type scope vs. runtime scope
Greg Ewing
greg.ewing at canterbury.ac.nz
Mon Aug 4 04:05:46 CEST 2008
Dag Sverre Seljebotn wrote:
> cdef numpy.ndarray[numpy.int64, 2] = numpy.zeros([10, 10], numpy.int64)
>
> This however creates an error:
> 'int64' is not a constant, variable or function identifier
You might like to look into how extension types are
made to behave as both types and runtime values --
this sounds like it might be something similar.
--
Greg
More information about the Cython-dev
mailing list