I got this code here:
a = np.zeros([32,32])
b = np.index_exp[:3,:3]
c = a[b]
c=1
a will still be a bunch of zeros. It won't change because of what happens to c.
But if I do this
a = np.zeros([32,32])
b = np.index_exp[:3,:3]
c = a[b]
c[:]=1
Now a changes. Why? It looks like in the first example I completely reassigned c, but in the second I assigned all of the values of c and then there was a reference? Anyone know the specifics?