mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Forward port total_ordering() and cmp_to_key().
This commit is contained in:
parent
5daab45158
commit
c50846aaef
10 changed files with 186 additions and 25 deletions
|
|
@ -1209,8 +1209,7 @@ Basic customization
|
|||
Arguments to rich comparison methods are never coerced.
|
||||
|
||||
To automatically generate ordering operations from a single root operation,
|
||||
see the `Total Ordering recipe in the ASPN cookbook
|
||||
<http://code.activestate.com/recipes/576529/>`_\.
|
||||
see :func:`functools.total_ordering`.
|
||||
|
||||
.. method:: object.__hash__(self)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue