diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-10-16 08:23:11 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-10-16 08:23:11 (GMT) |
commit | 85d5d902ce17ae6d088f94621d5a657dfe3f1c45 (patch) | |
tree | 4cad53d521b74904c9c8579df700975278570805 /Doc | |
parent | 148827c32a68754a5646a7a4a30be3af20896ad1 (diff) | |
parent | edb9111d41edc9df3ac5727f8007c5d65f7e4bd3 (diff) | |
download | cpython-85d5d902ce17ae6d088f94621d5a657dfe3f1c45.zip cpython-85d5d902ce17ae6d088f94621d5a657dfe3f1c45.tar.gz cpython-85d5d902ce17ae6d088f94621d5a657dfe3f1c45.tar.bz2 |
Issue #25418: Fix markup in object.__hash__ documentation
Patch by TAKASE Arihiro.
Diffstat (limited to 'Doc')
-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 e5e25a8..3032dc8 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1341,7 +1341,7 @@ Basic customization :meth:`__hash__` method of a class is ``None``, instances of the class will raise an appropriate :exc:`TypeError` when a program attempts to retrieve their hash value, and will also be correctly identified as unhashable when - checking ``isinstance(obj, collections.Hashable``). + checking ``isinstance(obj, collections.Hashable)``. 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 |