[Numpy-discussion] Numpy large array bug

Citi, Luca lciti@essex.ac...
Mon Sep 21 14:23:14 CDT 2009

I can confirm this bug for the last svn.

>>> a.put([2*1024*1024*1024 + 100,], 8)
IndexError: index out of range for array

in this case, I think the error is that in
in PyArray_PutTo line 209 should be:
    intp i, chunk, ni, max_item, nv, tmp;
instead of:
    int i, chunk, ni, max_item, nv, tmp;

fixing it as suggested:
>>> a.put([2*1024*1024*1024 + 100,], 8)
>>> a.max()

More information about the NumPy-Discussion mailing list