diff options
author | Guido van Rossum <guido@python.org> | 2001-12-04 21:02:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-12-04 21:02:07 (GMT) |
commit | cd7b7d611004f883d1c6c44e7b30f055290e788a (patch) | |
tree | 399665c05f46fc8890596a82b41c62f2717d18eb /Misc | |
parent | e1ceaa00dcff79db261e2c833880d3c82771c91b (diff) | |
download | cpython-cd7b7d611004f883d1c6c44e7b30f055290e788a.zip cpython-cd7b7d611004f883d1c6c44e7b30f055290e788a.tar.gz cpython-cd7b7d611004f883d1c6c44e7b30f055290e788a.tar.bz2 |
Add note about fixed hash() of mutable objects.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |