mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
#5486: typos.
This commit is contained in:
parent
f87e04d339
commit
ae2dbe2543
15 changed files with 27 additions and 27 deletions
|
@ -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__`
|
||||
|
|
|
@ -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`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue