Skip to content

Commit 6203ef3

Browse files
Replace the term Immutable with a Hashable in the sequence entry of the Glossary (#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.
1 parent df7228c commit 6203ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/glossary.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ Glossary
11311131
:class:`tuple`, and :class:`bytes`. Note that :class:`dict` also
11321132
supports :meth:`~object.__getitem__` and :meth:`!__len__`, but is considered a
11331133
mapping rather than a sequence because the lookups use arbitrary
1134-
:term:`immutable` keys rather than integers.
1134+
:term:`hashable` keys rather than integers.
11351135

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

0 commit comments

Comments
 (0)