Skip to content

Commit 64c887a

Browse files
csabellaorsenthil
authored andcommitted
bpo-26947: DOC: clarify wording on hashable in glossary (#948)
1 parent e82cf86 commit 64c887a

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)