From: Raymond Hettinger Date: Tue, 27 May 2014 01:49:25 +0000 (-0700) Subject: Issue 21575: Show list.sort() arguments in the tutorial. X-Git-Tag: v2.7.8~37^2~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7e19b60daeb18c3295dd19ce53bb55328bc5cb3c;p=python Issue 21575: Show list.sort() arguments in the tutorial. --- 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()