[Numpy-discussion] indexing bug?

Stefan van der Walt stefan@sun.ac...
Fri Sep 28 15:23:42 CDT 2007

On Fri, Sep 28, 2007 at 03:07:30PM -0400, Nadia Dencheva wrote:
> This should return an error and not silently truncate to int.

Why do you say that?  The current behaviour is consistent and well

a[x] == a[int(x)]

We certainly can't change it now (just imagine all the code out there
that will break); but I personally don't think it is a big problem.

On a somewhat related note, you may also be interested in the PEP at



More information about the Numpy-discussion mailing list