[Numpy-discussion] __iadd__(ndarray<int>, ndarray<float>)

Andreas Klöckner lists at informa.tiker.net
Mon Mar 24 14:28:19 EDT 2008


Hi all,

I just got tripped up by this behavior in Numpy 1.0.4:

>>> u = numpy.array([1,3])
>>> v = numpy.array([0.2,0.1])
>>> u+=v
>>> u
array([1, 3])
>>> 

I think this is highly undesirable and should be fixed, or at least warned 
about. Opinions?

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080324/3ed5bd01/attachment.sig>


More information about the NumPy-Discussion mailing list