Hi all, Is this supposed to be like that, i.e. is the fancy __setitem__ supposed to not complain about unused assignees?
>>> v = zeros((10,)) >>> z = [1,2,5] >>> v[z] = [1,2,4,5] >>> v array([ 0., 1., 2., 0., 0., 4., 0., 0., 0., 0.]) Contrast with: >>> v[1:3] = [1,2,3,4] Traceback (most recent call last): File "<console>", line 1, in <module> ValueError: shape mismatch: objects cannot be broadcast to a single shape Andreas
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion