diff options
author | Raymond Hettinger <python@rcn.com> | 2014-05-27 01:44:04 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-05-27 01:44:04 (GMT) |
commit | 07e048519b924ffe9d90a0ac04e5e8f88d47621a (patch) | |
tree | 3b429c879cc032987b0cfa6b229748b3eb476f19 /Doc/tutorial/datastructures.rst | |
parent | ab09c1319bde7a2ad756e7ed5651cfbb9848d271 (diff) | |
download | cpython-07e048519b924ffe9d90a0ac04e5e8f88d47621a.zip cpython-07e048519b924ffe9d90a0ac04e5e8f88d47621a.tar.gz cpython-07e048519b924ffe9d90a0ac04e5e8f88d47621a.tar.bz2 |
Issue 21575: Show list.sort() arguments in the tutorial.
Diffstat (limited to 'Doc/tutorial/datastructures.rst')
-rw-r--r-- | Doc/tutorial/datastructures.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index f2b66f7..5e95afa 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() |