From: Travis O. <oli...@ie...> - 2006-05-21 03:27:00
|
Simon Burton wrote: >>>> a=numpy.array([1,2,3],numpy.Int8) >>>> a >>>> > array([1, 2, 3], dtype=int8) > >>>> a*2 >>>> > array([2, 4, 6], dtype=int16) > > > My little 2 lives happily as an int8, so why is the int8 array > cast to an int16 ? > Thanks for catching this bug in the logic of scalar upcasting. It should only affect this one case. It's now been fixed. -Travis |