[Numpy-discussion] searchsorted bug

James Philbin philbinj at gmail.com
Thu Jan 31 10:10:25 EST 2008


Hi,

Just tried with numpy from svn and still get this problem:
>>> import numpy
>>> numpy.__version__
'1.0.5.dev4763'
>>> 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.

Thanks,
James



More information about the NumPy-Discussion mailing list