From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 23 Sep 2024 22:46:35 +0000 (+0200) Subject: [3.13] Replace the term `Immutable` with a `Hashable` in the `sequence` entry of... X-Git-Tag: v3.13.0rc3~126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12ae55ecb7e6cfb00ceca769dd0a15c23390ce48;p=thirdparty%2FPython%2Fcpython.git [3.13] Replace the term `Immutable` with a `Hashable` in the `sequence` entry of the Glossary (GH-124350) (#124352) 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> --- diff --git a/Doc/glossary.rst b/Doc/glossary.rst index d9f9392c327f..231652672111 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -1121,7 +1121,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