Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
be37beb0
Commit
be37beb0
authored
Jul 14, 2017
by
Łukasz Rogalski
Committed by
R. David Murray
Jul 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc that 'sorted' args are keyword-only, fix 'reverse' default (#2706)
parent
0d0a32fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Doc/library/functions.rst
Doc/library/functions.rst
+1
-1
Doc/library/stdtypes.rst
Doc/library/stdtypes.rst
+1
-1
No files found.
Doc/library/functions.rst
View file @
be37beb0
...
...
@@ -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*.
...
...
Doc/library/stdtypes.rst
View file @
be37beb0
...
...
@@ -1161,7 +1161,7 @@ application).
:ref:`mutable <typesseq-mutable>` sequence operations. Lists also provide the
following additional method:
.. method:: list.sort(*, key=None, reverse=
Non
e)
.. method:: list.sort(*, key=None, reverse=
Fals
e)
This method sorts the list in place, using only ``<`` comparisons
between items. Exceptions are not suppressed - if any comparison operations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment