From 7e19b60daeb18c3295dd19ce53bb55328bc5cb3c Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 26 May 2014 18:49:25 -0700 Subject: [PATCH] Issue 21575: Show list.sort() arguments in the tutorial. --- Doc/tutorial/datastructures.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 02ba11509f..acc2cc1c8f 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -68,10 +68,11 @@ objects: Return the number of times *x* appears in the list. -.. method:: list.sort() +.. method:: list.sort(cmp=None, key=None, reverse=False) :noindex: - Sort the items of the list, in place. + Sort the items of the list in place (the arguments can be used for sort + customization, see :func:`sorted` for their explanation). .. method:: list.reverse() -- 2.50.1