You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is the difference between objects and views. The views a[0], a[1] reference rows in a and the assignment a[0] = a[1] copies the data from row 1 to row 0. If the rows were themselves objects then things would work in the normal python way, but they aren't. So I think the current behaviour is correct and if the other behaviour is assumed in some applications then it is a bug.
Original ticket http://projects.scipy.org/numpy/ticket/1057 on 2009-03-18 by trac user praeteri, assigned to unknown.
simply check this:
This data format is used e.g. by pylab.load.
The inplace exchange e.g. by random.shuffle.
Hence, it is a very common situation...
I don't know if this is the way it should be.
The text was updated successfully, but these errors were encountered: