(please copy to the trace page)

On Sat, Mar 22, 2008 at 6:08 PM, James Philbin <[EMAIL PROTECTED]> wrote:
> I'm not sure that #669
> (http://projects.scipy.org/scipy/numpy/ticket/669) is a bug, but
> probably needs some discussion (see the last reply on that page). The
> cast is made because we don't know that the LHS is non-negative.
> However it could be argued that operations involving two integers
> should never cast to a float, in which case maybe an exception should
> be thrown.
>
I don't understand this argument, isn't this case similar to any
overflow / wrap-around in "limited" dtypes. Like this:
>>> N.uint8(200) + N.uint8(200)
144
>>> _.dtype
uint8

You would not argue that uint8 has to get converted to "???" because
it can produce (mathematically) "wrong" results !

My 2 cents,
Sebastian Haase
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to