]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Replace the term `Immutable` with a `Hashable` in the `sequence` entry of the Glossar...
authordecorator-factory <42166884+decorator-factory@users.noreply.github.com>
Mon, 23 Sep 2024 16:34:08 +0000 (19:34 +0300)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 16:34:08 +0000 (16:34 +0000)
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

index ea2f4da093caa0f30b4b09670de6acc36042b692..b3fd3c96b5c2172d5363dc9561979c93447e251d 100644 (file)
@@ -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