]> 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:49:25 +0000 (18:49 -0700)
committerRaymond Hettinger <python@rcn.com>
Tue, 27 May 2014 01:49:25 +0000 (18:49 -0700)
Doc/tutorial/datastructures.rst

index 02ba11509f2ca4f1e3f402d3c40fa10e7b51710d..acc2cc1c8fb8fda8b3011c4c63cacc05c58f0a67 100644 (file)
@@ -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()