8000 gh-109812: Fix phrasing for `collections.Counter` · JacobCoffee/cpython@6758fed · GitHub
[go: up one dir, main page]

Skip to content

Commit 6758fed

Browse files
committed
pythongh-109812: Fix phrasing for collections.Counter
- fail at squashing 7 commits for one line change Signed-off-by: Jacob Coffee <jacob@z7x.org>
1 parent fbfec56 commit 6758fed

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) A2A2 # 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)
0