summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-08 04:38:29 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-05-08 04:38:29 (GMT)
commite63415ead8aeaaf072142c177a71b5a3e3327187 (patch)
treea139373bd30a2a90d511e6711387c5deda1699bc /Misc
parent66a7e57c7e8aab2bf187991aa5c2aa5e21b44c2c (diff)
downloadcpython-e63415ead8aeaaf072142c177a71b5a3e3327187.zip
cpython-e63415ead8aeaaf072142c177a71b5a3e3327187.tar.gz
cpython-e63415ead8aeaaf072142c177a71b5a3e3327187.tar.bz2
SF patch #421922: Implement rich comparison for dicts.
d1 == d2 and d1 != d2 now work even if the keys and values in d1 and d2 don't support comparisons other than ==, and testing dicts for equality is faster now (especially when inequality obtains).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS6
1 files changed, 4 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 1f971cd..f2150d5 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -17,14 +17,16 @@ Core
- The following functions were generalized to work nicely with iterator
arguments:
- map(), filter(), reduce()
+ map(), filter(), reduce(), zip()
list(), tuple() (PySequence_Tuple() and PySequence_Fast() in C API)
max(), min()
- zip()
.join() method of strings
'x in y' and 'x not in y' (PySequence_Contains() in C API)
operator.countOf() (PySequence_Count() in C API)
+- Comparing dictionary objects via == and != is faster, and now works even
+ if the keys and values don't support comparisons other than ==.
+
What's New in Python 2.1 (final)?
=================================