[Cython] Reevaluating buffer syntax
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Wed Aug 6 10:52:12 CEST 2008
Robert Bradshaw wrote:
> I would like to see something like int[n] be useable to create
> automatically memory managed arrays of ints in the future. (Having to
> learn malloc, etc. seems to be one of the most un-pythonic thing of
> using Cython).
Can you reconfirm this, I always assumed it would look like
cdef int myarr[n]
i.e. the [] on the variable rather than the type (which is never a problem).
--
Dag Sverre
More information about the Cython-dev
mailing list