[Python-checkins] Add Positional only arguments forward slash (/) to sorted() function in Built-in Functions document (GH-30113)
miss-islington
webhook-mailer at python.org
Wed Dec 15 06:24:45 EST 2021
https://github.com/python/cpython/commit/f025ae63dccf96c4a1d781a6438bd9ed1502f0a1
commit: f025ae63dccf96c4a1d781a6438bd9ed1502f0a1
branch: main
author: Vivek Vashist <vivekvashist at gmail.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-12-15T03:24:38-08:00
summary:
Add Positional only arguments forward slash (/) to sorted() function in Built-in Functions document (GH-30113)
sorted() function is missing forward slash (/) in Built-in Functions documentation page.
Automerge-Triggered-By: GH:asvetlov
files:
M Doc/library/functions.rst
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index ebcd6c801d70e..059a058d5888c 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1571,7 +1571,7 @@ are always available. They are listed here in alphabetical order.
:func:`itertools.islice` for an alternate version that returns an iterator.
-.. function:: sorted(iterable, *, key=None, reverse=False)
+.. function:: sorted(iterable, /, *, key=None, reverse=False)
Return a new sorted list from the items in *iterable*.
More information about the Python-checkins
mailing list