From 6203ef35dd4ee9dd59759ce83eace8eacac69685 Mon Sep 17 00:00:00 2001 From: decorator-factory <42166884+decorator-factory@users.noreply.github.com> Date: Mon, 23 Sep 2024 19:34:08 +0300 Subject: 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. --- Doc/glossary.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index ea2f4da..b3fd3c9 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -1131,7 +1131,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 -- cgit v0.12