mirror of
https://github.com/python/cpython.git
synced 2025-08-09 19:38:42 +00:00
[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 6203ef35dd
)
Co-authored-by: decorator-factory <42166884+decorator-factory@users.noreply.github.com>
This commit is contained in:
parent
533b06c118
commit
dd2066f274
1 changed files with 1 additions and 1 deletions
|
@ -1106,7 +1106,7 @@ Glossary
|
|||
:class:`tuple`, and :class:`bytes`. Note that :class:`dict` also
|
||||
supports :meth:`~object.__getitem__` and :meth:`!__len__`, but is considered a
|
||||
mapping rather than a sequence because the lookups use arbitrary
|
||||
:term:`immutable` keys rather than integers.
|
||||
:term:`hashable` keys rather than integers.
|
||||
|
||||
The :class:`collections.abc.Sequence` abstract base class
|
||||
defines a much richer interface that goes beyond just
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue