[Numpy-discussion] A bug in boolean indexing?

Nadav Horesh nadavh@visionsense....
Thu Jul 29 03:04:52 CDT 2010

The following does not raise an error:

a = np.arange(5)
a[a>0] = a

although a.shape == (5,) while a[a>0].shape == (4,)

I get in on python2.6.5, numpy 1.4.1 on win32, and python 2.6.5, numpy 2.0.0.dev8469 on linux64.


More information about the NumPy-Discussion mailing list