bpo-26947: DOC: clarify wording on hashable in glossary (#948)

This commit is contained in:
csabella 2017-04-01 22:50:47 -04:00 committed by Senthil Kumaran
parent e82cf8675b
commit 64c887ab3a
1 changed files with 3 additions and 3 deletions

View File

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