diff options
author | Raymond Hettinger <python@rcn.com> | 2014-05-27 01:49:25 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-05-27 01:49:25 (GMT) |
commit | 7e19b60daeb18c3295dd19ce53bb55328bc5cb3c (patch) | |
tree | d7bc0b7a3326b65d80fce59d935b30fcdf3d134a /Doc/tutorial | |
parent | 3690d41c480bedef7f4b7f725cf62425229c0923 (diff) | |
download | cpython-7e19b60daeb18c3295dd19ce53bb55328bc5cb3c.zip cpython-7e19b60daeb18c3295dd19ce53bb55328bc5cb3c.tar.gz cpython-7e19b60daeb18c3295dd19ce53bb55328bc5cb3c.tar.bz2 |
Issue 21575: Show list.sort() arguments in the tutorial.
Diffstat (limited to 'Doc/tutorial')
-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 02ba115..acc2cc1 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -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() |