Documentation
In Doc/library/collections.rst, the sentence that introduces the two Counter-specific method overrides reads:
The usual dictionary methods are available for Counter objects except for two which work differently for counters.
This sentence ends with a period, but the two methods it refers to (fromkeys and update) are defined immediately below it. Because the sentence doesn't introduce them as a list, the connection to the following entries is easy to miss on a first read.
Suggested change
The usual dictionary methods are available for Counter objects except for these two which work differently for counters:
Adding "these" makes the reference concrete, and changing the period to a colon makes the following fromkeys/update entries read as the list being introduced.
PR: #148882
Linked PRs
Documentation
In
Doc/library/collections.rst, the sentence that introduces the two Counter-specific method overrides reads:This sentence ends with a period, but the two methods it refers to (
fromkeysandupdate) are defined immediately below it. Because the sentence doesn't introduce them as a list, the connection to the following entries is easy to miss on a first read.Suggested change
Adding "these" makes the reference concrete, and changing the period to a colon makes the following
fromkeys/updateentries read as the list being introduced.PR: #148882
Linked PRs