Skip to content

Commit 99fba5f

Browse files
authored
gh-109812: Fix phrasing for collections.Counter (gh-109813)
1 parent f65f9e8 commit 99fba5f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ Common patterns for working with :class:`Counter` objects::
358358
list(c) # list unique elements
359359
set(c) # convert to a set
360360
dict(c) # convert to a regular dictionary
361-
c.items() # convert to a list of (elem, cnt) pairs
361+
c.items() # access the (elem, cnt) pairs
362362
Counter(dict(list_of_pairs)) # convert from a list of (elem, cnt) pairs
363363
c.most_common()[:-n-1:-1] # n least common elements
364364
+c # remove zero and negative counts

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ Robbie Clemons
349349
Steve Clift
350350
Hervé Coatanhay
351351
Riccardo Coccioli
352+
Jacob Coffee
352353
Nick Coghlan
353354
Josh Cogliati
354355
Noam Cohen

0 commit comments

Comments
 (0)