[Cython] Reevaluating buffer syntax

Stefan Behnel stefan_ml at behnel.de
Tue Aug 5 20:32:52 CEST 2008


Hi,

Dag Sverre Seljebotn wrote:
> cdef ndarray[int, 2D]
> 
> - Require that ndim is given by name. The verbosity of this is a big 
> problem IMO.

One of the two, not both. FWIW, I'm +0 on the keyword argument.

There's also the question regarding the brackets: [] or (). Wouldn't

    ndarray(int, ndim=2)

match the proposed assumption syntax?

Stefan


More information about the Cython-dev mailing list