]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Replace the term `Immutable` with a `Hashable` in the `sequence` entry of...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Sep 2024 16:41:01 +0000 (18:41 +0200)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 16:41:01 +0000 (16:41 +0000)
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

index c85370fec84aea189c12b1f7f43276df1c0e9cef..01d126830b7085277862ba3cd3a1032614ba5c7d 100644 (file)
@@ -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