[Numpy-discussion] searchsorted bug

James Philbin philbinj@gmail....
Thu Jan 31 09:10:25 CST 2008


Just tried with numpy from svn and still get this problem:
>>> import numpy
>>> numpy.__version__
>>> A = numpy.array(['a','aa','b'])
>>> B = numpy.array(['d','e'])
>>> A.searchsorted(B)
array([3, 0])

I guess this must be a platform-dependent bug. I'm running python version:
Python 2.5 (r25:51908, Nov  6 2007, 15:55:44)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2

I'm on an Intel Xeon E5345.

Any help would be much appreciated.


More information about the Numpy-discussion mailing list