[Numpy-discussion] bug report ?

Travis E. Oliphant oliphant@enthought....
Wed Mar 5 08:45:06 CST 2008

Revaz Yves wrote:
> Matthieu Brucher wrote:
>> Hi,
>> What type is pos->dimensions in your case ? It may be long (64bits 
>> long) instead of the expected int (32bits) or something like that ?
> yes,
> pos->dimensions is a 64bits long
> while PyArray_FromDims expects 32bits int.
> Why is it so ?
PyArray_FromDims is backward compatible Numeric API which did not 
support 64-bit correctly.

PyArray_SimpleNew is the equivalent that accepts 64-bit dimensions 
information and is what you should be using.

-Travis O.

More information about the Numpy-discussion mailing list