There was an error while loading. Please reload this page.
1 parent 9c06689 commit a3dfa07Copy full SHA for a3dfa07
1 file changed
Lib/collections/__init__.py
@@ -553,8 +553,8 @@ class Counter(dict):
553
or multiset. Elements are stored as dictionary keys and their counts
554
are stored as dictionary values.
555
556
- Note: If a Mapping or Counter is used to initialize a Counter object
557
- the values from that object will be preserved.
+ When constructed from a Mapping or Counter, the original object's
+ values will be used as the initial counts.
558
559
>>> c = Counter('abcdeabcdabcaba') # count elements from a string
560
0 commit comments