[SciPy-dev] bug in argmax?

Alan G Isaac aisaac at american.edu
Sun Feb 3 13:23:30 EST 2008


Thanks Dave.
Looks like a bug to me.
Alan Isaac

Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 
32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as N
>>> N.__version__
'1.0.4'
>>> test1=N.int32(32)
>>> type(test1)
<type 'numpy.int32'>
>>> type(test1) is N.int32
True
>>> id(type(test1))
1810419616
>>> test2 = N.array([3,2,1]).argmax()
>>> type(test2)
<type 'numpy.int32'>
>>> type(test2) is N.int32
False
>>> id(type(test2))
1810419808





More information about the SciPy-Dev mailing list