dict insertion order is guaranteed since 3.7 (GH-10431)
(cherry picked from commit 76e8fd7b7e
)
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
This commit is contained in:
parent
b91c27d89d
commit
317dbb4433
|
@ -225,7 +225,7 @@ For example::
|
||||||
.. class:: Counter([iterable-or-mapping])
|
.. 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 hashable objects.
|
||||||
It is an unordered collection where elements are stored as dictionary keys
|
It is a collection where elements are stored as dictionary keys
|
||||||
and their counts are stored as dictionary values. Counts are allowed to be
|
and their counts are stored as dictionary values. Counts are allowed to be
|
||||||
any integer value including zero or negative counts. The :class:`Counter`
|
any integer value including zero or negative counts. The :class:`Counter`
|
||||||
class is similar to bags or multisets in other languages.
|
class is similar to bags or multisets in other languages.
|
||||||
|
|
Loading…
Reference in New Issue