I am trying to find the actual code for numpy's search sorted. I looked at:
https://github.com/numpy/numpy/blob/v1. ... 1022-L1075
But the searchsorted function just returns:
Код: Выделить всё
_wrapfunc(a, 'searchsorted', v, side=side, sorter=sorter)And at the top of the code,
Код: Выделить всё
_wrapfuncКод: Выделить всё
def _wrapfunc(obj, method, *args, **kwds): try: return getattr(obj, method)(*args, **kwds) ... Источник: https://stackoverflow.com/questions/467 ... archsorted