Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2257,10 +2257,10 @@ Basic customization

If a class does not define an :meth:`__eq__` method it should not define a
:meth:`__hash__` operation either; if it defines :meth:`__eq__` but not
:meth:`__hash__`, its instances will not be usable as items in hashable
:meth:`__hash__`, its instances will not be usable as items in hashed
collections. If a class defines mutable objects and implements an
:meth:`__eq__` method, it should not implement :meth:`__hash__`, since the
implementation of :term:`hashable` collections requires that a key's hash value is
implementation of hashed collections requires that a key's hash value is
immutable (if the object's hash value changes, it will be in the wrong hash
bucket).

Expand Down
Loading