]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add Positional only arguments forward slash (/) to sorted() function in Built-in...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 15 Dec 2021 12:59:01 +0000 (04:59 -0800)
committerGitHub <noreply@github.com>
Wed, 15 Dec 2021 12:59:01 +0000 (04:59 -0800)
sorted() function is missing forward slash (/) in Built-in Functions documentation page.

Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit f025ae63dccf96c4a1d781a6438bd9ed1502f0a1)

Co-authored-by: Vivek Vashist <vivekvashist@gmail.com>
Doc/library/functions.rst

index a117d30c0b0d5c38f53d19c9d64846a0897b2edc..9a9c87e32013c8297699f27a5ac45020ffd42dfd 100644 (file)
@@ -1582,7 +1582,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*.