[Numpy-tickets] [NumPy] #457: searchsorted docstring patch
NumPy
numpy-tickets@scipy....
Wed Feb 28 12:29:21 CST 2007
#457: searchsorted docstring patch
-------------------------+--------------------------------------------------
Reporter: AndrewStraw | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: numpy.core | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
The attached patch fixes a docstring bug. The following demonstrates that
the output array is the shape of v, not a as described in the docstring.
{{{
>>> import numpy
>>>
>>> a=numpy.arange(20)
>>> v=numpy.array([2,3,6,3,5])
>>>
>>> result = numpy.searchsorted(a,v)
>>> print result.shape
(5,)
}}}
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/457>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list