mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +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__`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue