diff options
author | Raymond Hettinger <python@rcn.com> | 2008-02-14 13:52:24 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-02-14 13:52:24 (GMT) |
commit | 51b9c2472e9d48c56184649aed199264e443374f (patch) | |
tree | 8424099a387d5b9db2ed725aad57fe3184e01ce9 /Doc | |
parent | 7f73295966733ba99581c660944e8894f753edcc (diff) | |
download | cpython-51b9c2472e9d48c56184649aed199264e443374f.zip cpython-51b9c2472e9d48c56184649aed199264e443374f.tar.gz cpython-51b9c2472e9d48c56184649aed199264e443374f.tar.bz2 |
Note that the key and reverse arguments must be specified as keywords
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/functions.rst | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index df3e16c..18e8270 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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``. |