Kaydet (Commit) 7e19b60d authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Issue 21575: Show list.sort() arguments in the tutorial.

üst 3690d41c
...@@ -68,10 +68,11 @@ objects: ...@@ -68,10 +68,11 @@ objects:
Return the number of times *x* appears in the list. Return the number of times *x* appears in the list.
.. method:: list.sort() .. method:: list.sort(cmp=None, key=None, reverse=False)
:noindex: :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() .. method:: list.reverse()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment