Re: [Numpy-discussion] Scalar coercion

2007-03-05 Thread Christopher Hanley
Hello Everyone, Another behavior we might consider changing for 1.0.2 that I believe is somewhat related in theme is the default type used in computations like the mean() method. This is best illustrated with the following example: sparty> python Python 2.5 (r25:51908, Sep 21 2006, 13:33:15) [

Re: [Numpy-discussion] Scalar coercion

2007-03-01 Thread Charles R Harris
On 3/1/07, Travis Oliphant <[EMAIL PROTECTED]> wrote: A ticket was posted that emphasizes that the current behavior of NumPy with regards to scalar coercion is different than numarray's behavior. If we were pre 1.0, I would probably change the behavior to be in-line with numarray. But, now I t

Re: [Numpy-discussion] Scalar coercion

2007-03-01 Thread Travis Oliphant
Robert Kern wrote: >Travis Oliphant wrote: > > > >>So the question is: Do we keep the current behavior or change the >>behavior to be more consistent with numarray. My current preference is >>to change the behavior so it is more consistent with numarray (even >>though it's actually not goin

Re: [Numpy-discussion] Scalar coercion

2007-03-01 Thread Robert Kern
Travis Oliphant wrote: > So the question is: Do we keep the current behavior or change the > behavior to be more consistent with numarray. My current preference is > to change the behavior so it is more consistent with numarray (even > though it's actually not going to be trivial to do that).

[Numpy-discussion] Scalar coercion

2007-03-01 Thread Travis Oliphant
A ticket was posted that emphasizes that the current behavior of NumPy with regards to scalar coercion is different than numarray's behavior. If we were pre 1.0, I would probably change the behavior to be in-line with numarray. But, now I think it needs some discussion because we are changi