Skip to content

Commit dd2066f

Browse files
[3.12] Replace the term Immutable with a Hashable in the sequence entry of the Glossary (GH-124350) (#124353)
Replace the term `Immutable` with a `Hashable` in the `sequence` entry of the Glossary (GH-124350) The term `Immutable` in the `sequence` entry of the glossary is used incorrectly, in fact dicts accepts hashable keys, which is not the same as immutable. (cherry picked from commit 6203ef3) Co-authored-by: decorator-factory <[email protected]>
1 parent 533b06c commit dd2066f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/glossary.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ Glossary
11061106
:class:`tuple`, and :class:`bytes`. Note that :class:`dict` also
11071107
supports :meth:`~object.__getitem__` and :meth:`!__len__`, but is considered a
11081108
mapping rather than a sequence because the lookups use arbitrary
1109-
:term:`immutable` keys rather than integers.
1109+
:term:`hashable` keys rather than integers.
11101110

11111111
The :class:`collections.abc.Sequence` abstract base class
11121112
defines a much richer interface that goes beyond just

0 commit comments

Comments
 (0)