diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-10-16 08:23:31 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-10-16 08:23:31 (GMT) |
commit | 83356f7a3f4c9e940b2f0ebf335618d1f0ba8781 (patch) | |
tree | abc1d6a0376779c5a6aafdd964e721de0a0d5e1d /Doc | |
parent | 1eca237c2f3d5c150cf9184fa7c9d9b137d1187c (diff) | |
parent | 85d5d902ce17ae6d088f94621d5a657dfe3f1c45 (diff) | |
download | cpython-83356f7a3f4c9e940b2f0ebf335618d1f0ba8781.zip cpython-83356f7a3f4c9e940b2f0ebf335618d1f0ba8781.tar.gz cpython-83356f7a3f4c9e940b2f0ebf335618d1f0ba8781.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 |