[Python-3000-checkins] r60804 - python/branches/py3k/Doc/library/functions.rst
raymond.hettinger
python-3000-checkins at python.org
Thu Feb 14 14:52:25 CET 2008
Author: raymond.hettinger
Date: Thu Feb 14 14:52:24 2008
New Revision: 60804
Modified:
python/branches/py3k/Doc/library/functions.rst
Log:
Note that the key and reverse arguments must be specified as keywords
Modified: python/branches/py3k/Doc/library/functions.rst
==============================================================================
--- python/branches/py3k/Doc/library/functions.rst (original)
+++ python/branches/py3k/Doc/library/functions.rst Thu Feb 14 14:52:24 2008
@@ -979,9 +979,7 @@
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``.
More information about the Python-3000-checkins
mailing list