summaryrefslogtreecommitdiffstats
path: root/Doc/library/functions.rst
diff options
context:
space:
mode:
authorƁukasz Rogalski <rogalski.91@gmail.com>2017-07-14 19:23:39 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2017-07-14 19:23:39 (GMT)
commitbe37beb05f5f2cff18e41440453e79aa17b239f9 (patch)
tree43e82151c2ff2e13805c74f9aaea426626f1f515 /Doc/library/functions.rst
parent0d0a32fb91cdfea1626e6c6b77a9bc44e15a2b8a (diff)
downloadcpython-be37beb05f5f2cff18e41440453e79aa17b239f9.zip
cpython-be37beb05f5f2cff18e41440453e79aa17b239f9.tar.gz
cpython-be37beb05f5f2cff18e41440453e79aa17b239f9.tar.bz2
Doc that 'sorted' args are keyword-only, fix 'reverse' default (#2706)
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r--Doc/library/functions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 4e48e42..015231d 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1361,7 +1361,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][, reverse])
+.. function:: sorted(iterable, *, key=None, reverse=False)
Return a new sorted list from the items in *iterable*.