Skip to content

Commit a71a3ad

Browse files
authored
bpo-26947: DOC: clarify wording on hashable in glossary (#948) (#957)
(cherry picked from commit 64c887a)
1 parent 4415b82 commit a71a3ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/glossary.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,9 @@ Glossary
467467
Hashability makes an object usable as a dictionary key and a set member,
468468
because these data structures use the hash value internally.
469469

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

0 commit comments

Comments
 (0)