Skip to content

[3.15] gh-154746: Update docstring for collections.Counter (GH-154792) - #154793

Merged
ZeroIntensity merged 1 commit into
python:3.15from
miss-islington:backport-22a123f-3.15
Jul 28, 2026
Merged

[3.15] gh-154746: Update docstring for collections.Counter (GH-154792)#154793
ZeroIntensity merged 1 commit into
python:3.15from
miss-islington:backport-22a123f-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

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 Iterables.

This behaviour was already documented in the canonical docs but is missing from the help() output.
(cherry picked from commit 22a123f)

Co-authored-by: Dan Shernicoff dan@brassnet.biz

…-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.
(cherry picked from commit 22a123f)

Co-authored-by: Dan Shernicoff <dan@brassnet.biz>
@ZeroIntensity
ZeroIntensity merged commit 5cc8361 into python:3.15 Jul 28, 2026
54 checks passed
@miss-islington
miss-islington deleted the backport-22a123f-3.15 branch July 28, 2026 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants