Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07e0485

Browse files
committed
Issue 21575: Show list.sort() arguments in the tutorial.
1 parent ab09c13 commit 07e0485

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/tutorial/datastructures.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,11 @@ objects:
7373
Return the number of times *x* appears in the list.
7474

7575

76-
.. method:: list.sort()
76+
.. method:: list.sort(key=None, reverse=False)
7777
:noindex:
7878

79-
Sort the items of the list in place.
79+
Sort the items of the list in place (the arguments can be used for sort
80+
customization, see :func:`sorted` for their explanation).
8081

8182

8283
.. method:: list.reverse()

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@ Stephen M. Gava
447447
Xavier de Gaye
448448
Harry Henry Gebel
449449
Marius Gedminas
450+
Jan-Philip Gehrcke
450451
Thomas Gellekum
451452
Gabriel Genellina
452453
Christos Georgiou

0 commit comments

Comments
 (0)