]> 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:02:23 +0000 (07:02 -0800)
committerGitHub <noreply@github.com>
Sat, 28 Nov 2020 15:02:23 +0000 (07:02 -0800)
(cherry picked from commit d41ec65ab7411e877ca33d05e8c900feca530635)

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

index 0edb73ad736919dfe3e941e721b97d52ae9d0078..b0c2091a31080848cc78078c32b783dc89f03dab 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