diff options
author | Raymond Hettinger <python@rcn.com> | 2010-04-04 18:34:45 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-04-04 18:34:45 (GMT) |
commit | a551f31d482e9feb61f80fe8cf1d1e615e4e8d50 (patch) | |
tree | 3df429006c8fe7b5474c61c91d148d2f57dc7ff0 /Misc | |
parent | fdaaa9c9d8a768c324a49250c91295ebce6b201a (diff) | |
download | cpython-a551f31d482e9feb61f80fe8cf1d1e615e4e8d50.zip cpython-a551f31d482e9feb61f80fe8cf1d1e615e4e8d50.tar.gz cpython-a551f31d482e9feb61f80fe8cf1d1e615e4e8d50.tar.bz2 |
Add functools.CmpToKey()
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -57,6 +57,12 @@ Library - collections.Counter() now supports a subtract() method. +- the functools module now has a total_ordering() class decorator + to simplify the specifying rich comparisons. + +- The functools module also adds CmpToKey() as a tool to transition + old-style comparison functions to new-style key-functions. + - Issue #8294: The Fraction constructor now accepts Decimal and float instances directly. |