Issue #25418: Fix markup in object.__hash__ documentation

Patch by TAKASE Arihiro.
This commit is contained in:
Berker Peksag 2015-10-16 11:23:31 +03:00
commit 83356f7a3f
1 changed files with 1 additions and 1 deletions

View File

@ -1341,7 +1341,7 @@ Basic customization
:meth:`__hash__` method of a class is ``None``, instances of the class will :meth:`__hash__` method of a class is ``None``, instances of the class will
raise an appropriate :exc:`TypeError` when a program attempts to retrieve raise an appropriate :exc:`TypeError` when a program attempts to retrieve
their hash value, and will also be correctly identified as unhashable when 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 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 of :meth:`__hash__` from a parent class, the interpreter must be told this