From 3772ac5a6a3ef5ff9367932870c2f4338e45f5a2 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: [PATCH] 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 6203ef35dd4ee9dd59759ce83eace8eacac69685) Co-authored-by: decorator-factory <42166884+decorator-factory@users.noreply.github.com> --- Doc/glossary.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index c85370fec84aea..01d126830b7085 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -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