diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-02-14 10:47:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-14 10:47:49 (GMT) |
commit | bc3718eb4b6defcdffb23b0c6f5879c5e721609a (patch) | |
tree | bb2ed8e9bac7da477e790882a0abbd9432f13157 /Doc/library/collections.rst | |
parent | 59852bbcc38ed4b5d6da7208e0e6b96456028523 (diff) | |
download | cpython-bc3718eb4b6defcdffb23b0c6f5879c5e721609a.zip cpython-bc3718eb4b6defcdffb23b0c6f5879c5e721609a.tar.gz cpython-bc3718eb4b6defcdffb23b0c6f5879c5e721609a.tar.bz2 |
GH-101898: Fix missing term references for hashable definition (GH-101899)
Fix missing term references for hashable definition
(cherry picked from commit 3690688149dca11589af59b7704541336613199a)
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r-- | Doc/library/collections.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index 2086383..285d362 100644 --- a/Doc/library/collections.rst +++ b/Doc/library/collections.rst @@ -25,7 +25,7 @@ Python's general purpose built-in containers, :class:`dict`, :class:`list`, :func:`namedtuple` factory function for creating tuple subclasses with named fields :class:`deque` list-like container with fast appends and pops on either end :class:`ChainMap` dict-like class for creating a single view of multiple mappings -:class:`Counter` dict subclass for counting hashable objects +:class:`Counter` dict subclass for counting :term:`hashable` objects :class:`OrderedDict` dict subclass that remembers the order entries were added :class:`defaultdict` dict subclass that calls a factory function to supply missing values :class:`UserDict` wrapper around dictionary objects for easier dict subclassing @@ -241,7 +241,7 @@ For example:: .. class:: Counter([iterable-or-mapping]) - A :class:`Counter` is a :class:`dict` subclass for counting hashable objects. + A :class:`Counter` is a :class:`dict` subclass for counting :term:`hashable` objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The :class:`Counter` |