[Numpy-discussion] Cython/NumPy syntax

Travis E. Oliphant oliphant@enthought....
Wed Aug 6 09:10:41 CDT 2008


Gael Varoquaux wrote:
> On Wed, Aug 06, 2008 at 10:35:06AM +0200, Dag Sverre Seljebotn wrote:
>   
>> Stéfan van der Walt wrote:
>>     
>>> 2008/8/6 Dag Sverre Seljebotn <dagss@student.matnat.uio.no>:
>>>       
>>>> - Require an ndim keyword:
>>>>         
>
>   
>>>> cdef numpy.ndarray[numpy.int64, ndim=2]
>>>>         

Just out of curiousity.  What is the problem with using parenthesis for 
this purpose?

cdef numpy.ndarray(dtype=numpy.int64, ndim=2)

-Travis




More information about the Numpy-discussion mailing list