[Cython] Reevaluating buffer syntax
Robert Bradshaw
robertwb at math.washington.edu
Wed Aug 6 18:24:59 CEST 2008
On Aug 6, 2008, at 1:52 AM, Dag Sverre Seljebotn wrote:
> 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).
I'm talking about dynamically created ones. Not sure of the right
syntax yet though.
- Robert
More information about the Cython-dev
mailing list