Numerical Bug in Numpy V19.0

Gordon Williams g_will at cyberus.ca
Thu Nov 8 21:30:20 EST 2001


Hi,

I have just changed to Numpy V19 from V17.  I get the following output in
V19:


>>> a=array([1,2,3,4], Int16)
>>> a
array([1, 2, 3, 4],'s')
>>> a/2
array([0, 1, 1, 2],'i')
>>> a/=2
Traceback (innermost last):
  File "<interactive input>", line 1, in ?
TypeError: return array has incorrect type
>>> a.savespace(1)
>>> a/2
array([0, 1, 1, 2],'s')
>>> a/=2
Traceback (innermost last):
  File "<interactive input>", line 1, in ?
TypeError: return array has incorrect type
>>>

In V17 it acts as expected and I don't get the "return array has incorrect
type" error.

This must be a new bug that was put into V19.

Running Python 2.0 on W2000 if that makes any difference.

Regards,

Gordon Williams







More information about the Python-list mailing list