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

Andreas Klöckner lists@informa.tiker....
Mon Mar 24 13:28:19 CDT 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: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080324/3ed5bd01/attachment.bin 


More information about the Numpy-discussion mailing list