<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<blockquote
cite="mid:CAB6mnxJDhQyZFNFJeHXM=fdAOu-n=ufTrJ7-F+0vDB=sYi6LXA@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Sure, that would be
easy enough to implement. I don't really have a preference,
is there a reason you would prefer that API?<span
class="HOEnZb"><font color="#888888"><br>
</font></span></div>
</blockquote>
<div><br>
No, just exploring possibilities. Another would be a different
name, searchargsorted or some such. I actually think that is a
better alternative than the pair, but it would add another
method to ndarray.</div>
</div>
</blockquote>
<br>
I guess after thinking about it my own personal preference is for
just adding the sorter argument, perhaps others can weigh in. Just
to summarize, the proposals fo far:<br>
<br>
np.searchsorted(a, 12, sorter=s)<br>
<br>
np.searchsorted((a,s), 12)<br>
<br>
np.searchargsorted(a, s, 12)<br>
<br>
<br>
Bryan<br>
</body>
</html>