From: Charles R H. <cha...@gm...> - 2006-10-30 02:17:42
|
On 10/29/06, Tom Denniston <tom...@al...> wrote: > > Oh. My mistake. I thought I had an array of 2 objects which were ints. I > actually had an array of one list of 2 ints. It works properly if I > construct the array properly. > I think there is actually a bug here: In [61]: sort(array([3,2], dtype=object)) Out[61]: array([2, 3], dtype=object) In [62]: argmax(array([2,3], dtype=object)) Out[62]: 0 See, the sort works fine. I suspect argmax is using the wrong comparison function. I was just pointing out that sometimes it is hard to know what is going on with objects. Chuck |