[NumPy-Tickets] [NumPy] #1368: numpy.ma sort method sorts in-place but dosctring says it returns a sorted copy
NumPy Trac
numpy-tickets@scipy....
Thu Jan 21 14:41:19 CST 2010
#1368: numpy.ma sort method sorts in-place but dosctring says it returns a sorted
copy
----------------------+-----------------------------------------------------
Reporter: bsulman | Owner: pierregm
Type: defect | Status: new
Priority: normal | Milestone:
Component: numpy.ma | Version: 1.4.0
Keywords: sort |
----------------------+-----------------------------------------------------
The dosctring to the sort method in numpy.ma says "Return a sorted copy of
an array," the same behavior as the numpy sort method. However, the
numpy.ma sort method sorts arrays in-place, unlike the numpy sort method
and in contradiction to the documentation. The code should be changed to
match the numpy code, or the docstring should be changed to accurately
reflect the behavior.
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/1368>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list