[Numpy-discussion] indexing bug?

Nadia Dencheva dencheva@stsci....
Fri Sep 28 13:07:43 CDT 2007


Is indexing with floats really allowed in numpy?


 >>> a=numpy.array([1,2,3,4])
 >>> a[2.99]
3


Nadia Dencheva


More information about the Numpy-discussion mailing list