Skip to content

gh-148883: Docs: clarify grammar in Counter dictionary methods note#148882

Merged
rhettinger merged 1 commit intopython:mainfrom
SanJJ1:docs-counter-methods-grammar
Apr 22, 2026
Merged

gh-148883: Docs: clarify grammar in Counter dictionary methods note#148882
rhettinger merged 1 commit intopython:mainfrom
SanJJ1:docs-counter-methods-grammar

Conversation

@SanJJ1
Copy link
Copy Markdown
Contributor

@SanJJ1 SanJJ1 commented Apr 22, 2026

Small grammar/punctuation tweak in the collections.Counter docs so the sentence reads as an introduction to the two methods that immediately follow it.

Before:

The usual dictionary methods are available for Counter objects except for two which work differently for counters.

After:

The usual dictionary methods are available for Counter objects except for these two which work differently for counters:

The following fromkeys and update entries are what "these two" refers to, so ending with a colon (and adding "these") makes the list connection explicit.


📚 Documentation preview 📚: https://cpython-previews--148882.org.readthedocs.build/

Change 'except for two which work differently for counters.' to
'except for these two which work differently for counters:' so the
sentence reads as an introduction to the list of methods that follows.
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented Apr 22, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news labels Apr 22, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Apr 22, 2026
@SanJJ1 SanJJ1 changed the title Docs: clarify grammar in Counter dictionary methods note gh-148883: Docs: clarify grammar in Counter dictionary methods note Apr 22, 2026
@rhettinger rhettinger self-assigned this Apr 22, 2026
@rhettinger rhettinger merged commit 79321fd into python:main Apr 22, 2026
37 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants