Skip to content

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

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

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

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 e667f26 into python:3.13 Jul 28, 2026
42 checks passed
@miss-islington
miss-islington deleted the backport-22a123f-3.13 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