Tom Denniston wrote:
> So searchsorted is supposed to take a list. The arguments I am using
> are not correct.
No, it will take a scalar value to search for, too.
In [18]: numpy.searchsorted(numpy.array([1, 2, 3, 4]), 1)
Out[18]: 0
In [19]: numpy.searchsorted(numpy.array(['1', '2', '3', '4']),
So searchsorted is supposed to take a list. The arguments I am using
are not correct. But it still seems strange to me that these
incorrect params trigger a memory error. Is a check simply missing or
is this possibly a sign of a larger bug? I can simply correct my
params so this is no big deal,