[Numpy-discussion] searchsorted bug

Charles R Harris charlesr.harris at gmail.com
Thu Jan 31 12:50:40 EST 2008


On Jan 31, 2008 10:33 AM, James Philbin <philbinj at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080131/4209639b/attachment.html>


More information about the NumPy-Discussion mailing list