On Jan 31, 2008 10:33 AM, James Philbin <[EMAIL PROTECTED]> wrote: > Hi, > > > In particular: > > > > * All arrays are assumed contiguous on entry and both arr and key must > be > > of <----- > > * the same comparable type. <----- > In which case, this seems to be an overly strict implementation of > searchsorted. Surely all that should be required is that the > comparison function can take both types. >
True. The problem is knowing when that is the case. The subroutine in question is at the bottom of the heap and don't know nothin'. IIRC, it just sits there and does the comparison by calling through a pointer with char* arguments. Chuck
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion