]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 28 Nov 2020 15:14:23 +0000 (07:14 -0800)
committerGitHub <noreply@github.com>
Sat, 28 Nov 2020 15:14:23 +0000 (07:14 -0800)
(cherry picked from commit d41ec65ab7411e877ca33d05e8c900feca530635)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Doc/tutorial/datastructures.rst

index ff4c797f66cd63163457a5553cf813e63158c3e3..5c6b65f05e1e5ffd382a8d63548761af8cd1dc37 100644 (file)
@@ -78,7 +78,7 @@ objects:
    Return the number of times *x* appears in the list.
 
 
-.. method:: list.sort(key=None, reverse=False)
+.. method:: list.sort(*, key=None, reverse=False)
    :noindex:
 
    Sort the items of the list in place (the arguments can be used for sort