No subject


Thu Nov 16 16:52:29 CST 2006


"""
3. Fix augmented assignment operators.

Currently:
>>> x =3D zeros(5)
>>> x.strides=3D0
>>> x +=3D 1
>>> x
array([5, 5, 5, 5, 5])
>>> x +=3D arange(5)
>>> x
array([15, 15, 15, 15, 15])


Desired:
>>> x =3D zeros(5)
>>> x.strides=3D0
>>> x +=3D 1
>>> x
array([1, 1, 1, 1, 1])
>>> x +=3D arange(5)
>>> x
array([1, 2, 3, 4, 5])
"""




More information about the Numpy-discussion mailing list