From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 28 Nov 2020 15:14:23 +0000 (-0800) Subject: bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538) X-Git-Tag: v3.9.1~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc5eb935c79bae13def91965e5fb7e8346d9dea1;p=thirdparty%2FPython%2Fcpython.git bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538) (cherry picked from commit d41ec65ab7411e877ca33d05e8c900feca530635) Co-authored-by: Zackery Spytz --- diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index ff4c797f66cd..5c6b65f05e1e 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -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