From: Raymond Hettinger Date: Tue, 27 May 2014 01:44:04 +0000 (-0700) Subject: Issue 21575: Show list.sort() arguments in the tutorial. X-Git-Tag: v3.5.0a1~1583 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07e048519b924ffe9d90a0ac04e5e8f88d47621a;p=thirdparty%2FPython%2Fcpython.git Issue 21575: Show list.sort() arguments in the tutorial. --- diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index f2b66f70d830..5e95afa6fc48 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -73,10 +73,11 @@ objects: Return the number of times *x* appears in the list. -.. method:: list.sort() +.. method:: list.sort(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() diff --git a/Misc/ACKS b/Misc/ACKS index f25da5efe6e1..7bf20c81f1fe 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -447,6 +447,7 @@ Stephen M. Gava Xavier de Gaye Harry Henry Gebel Marius Gedminas +Jan-Philip Gehrcke Thomas Gellekum Gabriel Genellina Christos Georgiou