Mailing List Archive

bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
https://github.com/python/cpython/commit/d41ec65ab7411e877ca33d05e8c900feca530635
commit: d41ec65ab7411e877ca33d05e8c900feca530635
branch: master
author: Zackery Spytz <zspytz@gmail.com>
committer: asvetlov <andrew.svetlov@gmail.com>
date: 2020-11-28T16: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

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538) [ In reply to ]
https://github.com/python/cpython/commit/e1c669b7ed18a81bfaa349726424ff5de9485f0a
commit: e1c669b7ed18a81bfaa349726424ff5de9485f0a
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
committer: miss-islington <31488909+miss-islington@users.noreply.github.com>
date: 2020-11-28T07:02:23-08:00
summary:

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

(cherry picked from commit d41ec65ab7411e877ca33d05e8c900feca530635)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

files:
M Doc/tutorial/datastructures.rst

diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index 0edb73ad73691..b0c2091a31080 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

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538) [ In reply to ]
https://github.com/python/cpython/commit/cc5eb935c79bae13def91965e5fb7e8346d9dea1
commit: cc5eb935c79bae13def91965e5fb7e8346d9dea1
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
committer: miss-islington <31488909+miss-islington@users.noreply.github.com>
date: 2020-11-28T07:14:23-08:00
summary:

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

(cherry picked from commit d41ec65ab7411e877ca33d05e8c900feca530635)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

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

_______________________________________________
Python-checkins mailing list
Python-checkins@python.org
https://mail.python.org/mailman/listinfo/python-checkins