8000 bpo-26947: DOC: clarify wording on hashable in glossary (#948) (#958) · python/cpython@51fc7e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 51fc7e3

Browse files
authored
bpo-26947: DOC: clarify wording on hashable in glossary (#948) (#958)
(cherry picked from commit 64c887a)
1 parent f315812 commit 51fc7e3

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
@@ -434,9 +434,9 @@ Glossary
434434
Hashability makes an object usable as a dictionary key and a set member,
435435
because these data structures use the hash value internally.
436436

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

0 commit comments

Comments
 (0)
0