diff options
author | Georg Brandl <georg@python.org> | 2009-03-13 19:04:40 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-03-13 19:04:40 (GMT) |
commit | ae2dbe2543859f9ad0ff0a2e84b33421c8fd5406 (patch) | |
tree | c903b7d3d7b48ad04fc1107aa3225fdd212cb5df /Doc/reference/datamodel.rst | |
parent | f87e04d3398091662c399ee5ba0a3e71dbae9a24 (diff) | |
download | cpython-ae2dbe2543859f9ad0ff0a2e84b33421c8fd5406.zip cpython-ae2dbe2543859f9ad0ff0a2e84b33421c8fd5406.tar.gz cpython-ae2dbe2543859f9ad0ff0a2e84b33421c8fd5406.tar.bz2 |
#5486: typos.
Diffstat (limited to 'Doc/reference/datamodel.rst')
-rw-r--r-- | Doc/reference/datamodel.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index e5cc1b9..2e4a776 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1240,7 +1240,7 @@ Basic customization ``isinstance(obj, collections.Hashable)`` (unlike classes which define their own :meth:`__hash__` to explicitly raise :exc:`TypeError`). - If a class that overrrides :meth:`__eq__` needs to retain the implementation + If a class that overrides :meth:`__eq__` needs to retain the implementation of :meth:`__hash__` from a parent class, the interpreter must be told this explicitly by setting ``__hash__ = <ParentClass>.__hash__``. Otherwise the inheritance of :meth:`__hash__` will be blocked, just as if :attr:`__hash__` |