From: Raymond Hettinger Date: Thu, 14 Feb 2008 13:52:24 +0000 (+0000) Subject: Note that the key and reverse arguments must be specified as keywords X-Git-Tag: v3.0a3~55 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=51b9c2472e9d48c56184649aed199264e443374f;p=thirdparty%2FPython%2Fcpython.git Note that the key and reverse arguments must be specified as keywords --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index df3e16ce1d53..18e827015a48 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``.