]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-154746: Update docstring for `collections.Counter` (GH-154792)
authorDan Shernicoff <dan@brassnet.biz>
Tue, 28 Jul 2026 01:41:17 +0000 (21:41 -0400)
committerGitHub <noreply@github.com>
Tue, 28 Jul 2026 01:41:17 +0000 (01:41 +0000)
commit22a123f1305bf45d5d35441e9164fb4528da493c
treec4a6b075c76d0cac51f803ded3d3fe1fb8f14e31
parent1ec56076642091c446ec95afcf166bb4f185f0b7
gh-154746: Update docstring for `collections.Counter` (GH-154792)

Added a note to `collections.Counter`'s docstring that initializing a `Counter` from a `Mapping` or `Counter` will have different behaviour than initializing from other `Iterable`s.

This behaviour was already documented in the canonical docs but is missing from the help() output.
Lib/collections/__init__.py