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

Skip to content

Commit cb9a551

Browse files
committed
remove a trace of the cmp argument for list.sort
1 parent 05c2621 commit cb9a551

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Objects/listobject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2296,8 +2296,7 @@ PyDoc_STRVAR(count_doc,
22962296
PyDoc_STRVAR(reverse_doc,
22972297
"L.reverse() -- reverse *IN PLACE*");
22982298
PyDoc_STRVAR(sort_doc,
2299-
"L.sort(key=None, reverse=False) -- stable sort *IN PLACE*;\n\
2300-
cmp(x, y) -> -1, 0, 1");
2299+
"L.sort(key=None, reverse=False) -- stable sort *IN PLACE*");
23012300

23022301
static PyObject *list_subscript(PyListObject*, PyObject*);
23032302

0 commit comments

Comments
 (0)