Commit 51b9c247 authored by Raymond Hettinger's avatar Raymond Hettinger

Note that the key and reverse arguments must be specified as keywords

parent 7f732959
......@@ -979,9 +979,7 @@ available. They are listed here in alphabetical order.
Return a new sorted list from the items in *iterable*.
The optional arguments *key* and *reverse* have the same meaning as
those for the :meth:`list.sort` method (described in section
:ref:`typesseq-mutable`).
Has two optional arguments which must be specified as keyword arguments.
*key* specifies a function of one argument that is used to extract a comparison
key from each list element: ``key=str.lower``. The default value is ``None``.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment