diff options
| author | Raymond Hettinger <python@rcn.com> | 2010-04-05 18:56:31 +0000 |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2010-04-05 18:56:31 +0000 |
| commit | c50846aaef3e38d466ac9a0a87f72f09238e2061 (patch) | |
| tree | f6ae48bcfbabb5107c971c240f3b06a549084f98 /Doc/library/functions.rst | |
| parent | 5daab45158094e577b9791cda7d8a0f4e34f45cb (diff) | |
| download | cpython-git-c50846aaef3e38d466ac9a0a87f72f09238e2061.tar.gz | |
Forward port total_ordering() and cmp_to_key().
Diffstat (limited to 'Doc/library/functions.rst')
| -rw-r--r-- | Doc/library/functions.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index b85eb71407..f371ffe9a1 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1014,9 +1014,8 @@ are always available. They are listed here in alphabetical order. *reverse* is a boolean value. If set to ``True``, then the list elements are sorted as if each comparison were reversed. - To convert an old-style *cmp* function to a *key* function, see the - `CmpToKey recipe in the ASPN cookbook - <http://code.activestate.com/recipes/576653/>`_\. + Use :func:`functools.cmp_to_key` to convert an + old-style *cmp* function to a *key* function. For sorting examples and a brief sorting tutorial, see `Sorting HowTo <http://wiki.python.org/moin/HowTo/Sorting/>`_\. |
