.. function:: total_ordering(cls)
Given a class defining one or more rich comparison ordering methods, this
- class decorator supplies the rest. This simplies the effort involved
+ class decorator supplies the rest. This simplifies the effort involved
in specifying all of the possible rich comparison operations:
The class must define one of :meth:`__lt__`, :meth:`__le__`,
- collections.Counter() now supports a subtract() method.
- the functools module now has a total_ordering() class decorator
- to simplify the specifying rich comparisons.
+ to simplify the specifyication of rich comparisons.
- The functools module also adds cmp_to_key() as a tool to transition
old-style comparison functions to new-style key-functions.