We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2368cb commit dc9bc54Copy full SHA for dc9bc54
Lib/collections/__init__.py
@@ -610,7 +610,7 @@ def elements(self):
610
@classmethod
611
def fromkeys(cls, iterable, v=None):
612
# There is no equivalent method for counters because the semantics
613
- # would be ambiguous in cases such as Counter('aaabbc', v=2).
+ # would be ambiguous in cases such as Counter.fromkeys('aaabbc', v=2).
614
# Initializing counters to zero values isn't necessary because zero
615
# is already the default value for counter lookups. Initializing
616
# to one is easily accomplished with Counter(set(iterable)). For
0 commit comments