[issue1706] numpy: numpy.searchsorted missing

New submission from Christoph Reiter <reiter.christoph@gmail.com>: This is needed for matplotlib ############## import numpy assert numpy.searchsorted([1,2,3,4,5], 3) == 2 assert numpy.searchsorted([1,2,3,4,5], 3, side='right') == 3 assert numpy.array_equal( numpy.searchsorted([1,2,3,4,5], [-10, 10, 2, 3]), numpy.array([0, 5, 1, 2])) ############## ---------- messages: 6590 nosy: lazka, pypy-issue priority: feature status: unread title: numpy: numpy.searchsorted missing ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue1706> ________________________________________

Christoph Reiter <reiter.christoph@gmail.com> added the comment: The given examples work with trunk now. Thanks mattip. https://bitbucket.org/pypy/pypy/commits/e86508502063f283b1344185eb77d6e008e7... As pointed out in the commit, the sorter kwarg isn't implemented, but it isn't used in matplotlib. ---------- status: unread -> chatting ________________________________________ PyPy bug tracker <tracker@bugs.pypy.org> <https://bugs.pypy.org/issue1706> ________________________________________
participants (1)
-
Christoph Reiter