Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 44fbad1

Browse files
committed
DOC: Adopt review suggestion by Maanas for kind parameter
1 parent 856a1d2 commit 44fbad1

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

numpy/_core/fromnumeric.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -953,10 +953,10 @@ def sort(a, axis=-1, kind=None, order=None, *, stable=None, descending=np._NoVal
953953
Axis along which to sort. If None, the array is flattened before
954954
sorting. The default is -1, which sorts along the last axis.
955955
kind : {'quicksort', 'mergesort', 'heapsort', 'stable'}, optional
956-
Please use the `stable` parameter instead. 'quicksort' and 'heapsort'
957-
are mapped to the default ``stable=False``, while 'mergesort' and
958-
'stable' are mapped to ``stable=True``. Fine grained algorithm control
959-
has been removed.
956+
Please use the `stable` parameter instead. This argument is retained
957+
for backwards compatibility and provides no additional control.
958+
'quicksort' and 'heapsort' are equivalent to ``stable=False``, while
959+
'mergesort' and 'stable' are equivalent to ``stable=True``.
960960
order : str or list of str, optional
961961
When `a` is an array with fields defined, this argument specifies
962962
which fields to compare first, second, etc. A single field can
@@ -1114,10 +1114,10 @@ def argsort(a, axis=-1, kind=None, order=None, *, stable=None, descending=np._No
11141114
Axis along which to sort. The default is -1 (the last axis). If None,
11151115
the flattened array is used.
11161116
kind : {'quicksort', 'mergesort', 'heapsort', 'stable'}, optional
1117-
Please use the `stable` parameter instead. 'quicksort' and 'heapsort'
1118-
are mapped to the default ``stable=False``, while 'mergesort' and
1119-
'stable' are mapped to ``stable=True``. Fine grained algorithm control
1120-
has been removed.
1117+
Please use the `stable` parameter instead. This argument is retained
1118+
for backwards compatibility and provides no additional control.
1119+
'quicksort' and 'heapsort' are equivalent to ``stable=False``, while
1120+
'mergesort' and 'stable' are equivalent to ``stable=True``.
11211121
order : str or list of str, optional
11221122
When `a` is an array with fields defined, this argument specifies
11231123
which fields to compare first, second, etc. A single field can

0 commit comments

Comments
 (0)