summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-04-04 18:34:45 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-04-04 18:34:45 (GMT)
commita551f31d482e9feb61f80fe8cf1d1e615e4e8d50 (patch)
tree3df429006c8fe7b5474c61c91d148d2f57dc7ff0 /Misc
parentfdaaa9c9d8a768c324a49250c91295ebce6b201a (diff)
downloadcpython-a551f31d482e9feb61f80fe8cf1d1e615e4e8d50.zip
cpython-a551f31d482e9feb61f80fe8cf1d1e615e4e8d50.tar.gz
cpython-a551f31d482e9feb61f80fe8cf1d1e615e4e8d50.tar.bz2
Add functools.CmpToKey()
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index af1dd20..0f1f225 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.