[Python-checkins] cpython (merge 3.4 -> 3.5): Issue #25418: Fix markup in object.__hash__ documentation

berker.peksag python-checkins at python.org
Fri Oct 16 04:22:57 EDT 2015


https://hg.python.org/cpython/rev/f56006107a4b
changeset:   98766:f56006107a4b
branch:      3.5
parent:      98759:9a07aaebccc0
parent:      98765:389c78c2c031
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Fri Oct 16 11:23:11 2015 +0300
summary:
  Issue #25418: Fix markup in object.__hash__ documentation

Patch by TAKASE Arihiro.

files:
  Doc/reference/datamodel.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1341,7 +1341,7 @@
    :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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list