]> granicus.if.org Git - python/commitdiff
Add note about fixed hash() of mutable objects.
authorGuido van Rossum <guido@python.org>
Tue, 4 Dec 2001 21:02:07 +0000 (21:02 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 4 Dec 2001 21:02:07 +0000 (21:02 +0000)
Misc/NEWS

index d97193d99cd645eb39118805b32a69709716ba04..565c675003db013b4084706ebff0ecc00ba30381 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -24,6 +24,11 @@ Type/class unification and new-style classes
   (c) The __get__ method didn't check whether the argument was an
       instance of the type used in creation of the super instance.
 
+- Previously, hash() of an instance of a subclass of a mutable type
+  (list or dictionary) would return some value, rather than raising
+  TypeError.  This has been fixed.  Also, directly calling
+  dict.__hash__ and list.__hash__ now raises the same TypeError
+  (previously, these were the same as object.__hash__).
 
 Core and builtins