[Python-checkins] bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)

asvetlov webhook-mailer at python.org
Sat Nov 28 09:53:48 EST 2020


https://github.com/python/cpython/commit/d41ec65ab7411e877ca33d05e8c900feca530635
commit: d41ec65ab7411e877ca33d05e8c900feca530635
branch: master
author: Zackery Spytz <zspytz at gmail.com>
committer: asvetlov <andrew.svetlov at gmail.com>
date: 2020年11月28日T16:53:39+02:00
summary:
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
files:
M Doc/tutorial/datastructures.rst
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index ff4c797f66cd6..5c6b65f05e1e5 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /