diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-05-08 04:38:29 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-05-08 04:38:29 (GMT) |
commit | e63415ead8aeaaf072142c177a71b5a3e3327187 (patch) | |
tree | a139373bd30a2a90d511e6711387c5deda1699bc /Misc/NEWS | |
parent | 66a7e57c7e8aab2bf187991aa5c2aa5e21b44c2c (diff) | |
download | cpython-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/NEWS')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)? ================================= |