[Numpy-discussion] Cython/NumPy syntax

Travis E. Oliphant oliphant at enthought.com
Wed Aug 6 10:10:41 EDT 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 at 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