Issue 21575: Show list.sort() arguments in the tutorial.
This commit is contained in:
parent
ab09c1319b
commit
07e048519b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue