mirror of https://github.com/python/cpython
Two typo fixes
This commit is contained in:
parent
f11363dcd3
commit
884d0a3c27
|
@ -42,7 +42,7 @@ The :mod:`functools` module defines the following functions:
|
|||
.. 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__`,
|
||||
|
|
|
@ -91,7 +91,7 @@ Library
|
|||
- 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.
|
||||
|
|
Loading…
Reference in New Issue