[Numpy-discussion] Do we want scalar casting to behave as it does at the moment?

Chris Barker - NOAA Federal chris.barker at noaa.gov
Thu Jan 17 20:05:54 EST 2013


On Thu, Jan 17, 2013 at 5:04 PM, Chris Barker - NOAA Federal
<chris.barker at noaa.gov> wrote:

> So in the in the spirit of "practicality beats purity" -- I"d like
> accidental upcasting to be hard to do.

and then:

arr = arr + scalar

would yield the same type as:

arr += scalar

so we buy some consistency!

-Chris


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the NumPy-Discussion mailing list