Skip to content

Commit

Permalink
bpo-26947: DOC: clarify wording on hashable in glossary (python#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
csabella authored and orsenthil committed Apr 2, 2017
1 parent e82cf86 commit 64c887a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ Glossary
Hashability makes an object usable as a dictionary key and a set member,
because these data structures use the hash value internally.

All of Python's immutable built-in objects are hashable, while no mutable
containers (such as lists or dictionaries) are. Objects which are
instances of user-defined classes are hashable by default; they all
All of Python's immutable built-in objects are hashable; mutable
containers (such as lists or dictionaries) are not. Objects which are
instances of user-defined classes are hashable by default. They all
compare unequal (except with themselves), and their hash value is derived
from their :func:`id`.

Expand Down

0 comments on commit 64c887a

Please sign in to comment.