[Python-checkins] cpython (2.7): Issue 21575: Show list.sort() arguments in the tutorial.
raymond.hettinger
python-checkins at python.org
Tue May 27 03:49:37 CEST 2014
http://hg.python.org/cpython/rev/be77b213ace0
changeset: 90864:be77b213ace0
branch: 2.7
parent: 90852:ae2e8bfda7d7
user: Raymond Hettinger <python at rcn.com>
date: Mon May 26 18:49:25 2014 -0700
summary:
Issue 21575: Show list.sort() arguments in the tutorial.
files:
Doc/tutorial/datastructures.rst | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -68,10 +68,11 @@
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()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list