summaryrefslogtreecommitdiff
path: root/Misc
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-05-08 04:38:29 +0000
committerTim Peters <tim.peters@gmail.com>2001-05-08 04:38:29 +0000
commit0782966645993e89104089f080032da3834cb556 (patch)
tree4bb0451900118c96bedb90cc5a6b1b535bbaf007 /Misc
parent1f8400079f86693019905ae3270be6ff04ed9524 (diff)
downloadcpython-0782966645993e89104089f080032da3834cb556.tar.gz
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 1f971cd40c..f2150d5c1d 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)?
=================================