diff options
author | Georg Brandl <georg@python.org> | 2009-03-13 19:04:40 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-03-13 19:04:40 (GMT) |
commit | ae2dbe2543859f9ad0ff0a2e84b33421c8fd5406 (patch) | |
tree | c903b7d3d7b48ad04fc1107aa3225fdd212cb5df /Doc/reference | |
parent | f87e04d3398091662c399ee5ba0a3e71dbae9a24 (diff) | |
download | cpython-ae2dbe2543859f9ad0ff0a2e84b33421c8fd5406.zip cpython-ae2dbe2543859f9ad0ff0a2e84b33421c8fd5406.tar.gz cpython-ae2dbe2543859f9ad0ff0a2e84b33421c8fd5406.tar.bz2 |
#5486: typos.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 2 | ||||
-rw-r--r-- | Doc/reference/expressions.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index e5cc1b9..2e4a776 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1240,7 +1240,7 @@ Basic customization ``isinstance(obj, collections.Hashable)`` (unlike classes which define their own :meth:`__hash__` to explicitly raise :exc:`TypeError`). - If a class that overrrides :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 explicitly by setting ``__hash__ = <ParentClass>.__hash__``. Otherwise the inheritance of :meth:`__hash__` will be blocked, just as if :attr:`__hash__` diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index b1717cf..b3cce00 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -1300,7 +1300,7 @@ groups from right to left). .. [#] While comparisons between strings make sense at the byte level, they may be counter-intuitive to users. For example, the strings ``"\u00C7"`` and ``"\u0327\u0043"`` compare differently, even though they both represent the - same unicode character (LATIN CAPTITAL LETTER C WITH CEDILLA). To compare + same unicode character (LATIN CAPITAL LETTER C WITH CEDILLA). To compare strings in a human recognizable way, compare using :func:`unicodedata.normalize`. |