]> granicus.if.org Git - python/commitdiff
Issue 21575: Show list.sort() arguments in the tutorial.
authorRaymond Hettinger <python@rcn.com>
Tue, 27 May 2014 01:44:04 +0000 (18:44 -0700)
committerRaymond Hettinger <python@rcn.com>
Tue, 27 May 2014 01:44:04 +0000 (18:44 -0700)
Doc/tutorial/datastructures.rst
Misc/ACKS

index f2b66f70d830be1b118d039a535875475981c789..5e95afa6fc48ad82715c5b1f0d5ba35f59cdd28a 100644 (file)
@@ -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()
index f25da5efe6e18c149465cec961df177227f11e37..7bf20c81f1fe519c3fabef639a65f7c83991aca8 100644 (file)
--- 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