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

Andreas Klöckner lists at informa.tiker.net
Tue Mar 25 01:08:35 EDT 2008


On Dienstag 25 März 2008, Travis E. Oliphant wrote:
> > Question: If it's a known trap, why not change it?
>
> It also has useful applications.  Also, it can only happen at with a
> bump in version number to 1.1

I'm not trying to make the functionality go away. I'm arguing that

int_array += downcast_ok(float_array)

should be the syntax for it. downcast_ok could be a view of float_array's data 
with an extra flag set, or a subclass.

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/20080325/de802ec0/attachment.sig>


More information about the NumPy-Discussion mailing list