Re: [Numpy-discussion] Memory Error in Search Sorted

2007-05-09 Thread Robert Kern
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']),

[Numpy-discussion] Memory Error in Search Sorted

2007-05-09 Thread Tom Denniston
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,