summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-10-16 08:22:50 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-10-16 08:22:50 (GMT)
commitedb9111d41edc9df3ac5727f8007c5d65f7e4bd3 (patch)
tree3cf62052dd6853de5a7cd6fdf50f13a31a68889a /Doc/reference
parentb2f87608d1ef42fa30d48b0beac58a17dcf649f4 (diff)
downloadcpython-edb9111d41edc9df3ac5727f8007c5d65f7e4bd3.zip
cpython-edb9111d41edc9df3ac5727f8007c5d65f7e4bd3.tar.gz
cpython-edb9111d41edc9df3ac5727f8007c5d65f7e4bd3.tar.bz2
Issue #25418: Fix markup in object.__hash__ documentation
Patch by TAKASE Arihiro.
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/datamodel.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 4e84d5e..1560ad0 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1331,7 +1331,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