This commit is contained in:
Georg Brandl 2009-03-13 19:04:40 +00:00
parent f87e04d339
commit ae2dbe2543
15 changed files with 27 additions and 27 deletions

View file

@ -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__`

View file

@ -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`.