Skip to content

Commit dc9bc54

Browse files
authored
Clarify that example in comment is about fromkeys() (GH-8141)
1 parent c2368cb commit dc9bc54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/collections/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def elements(self):
610610
@classmethod
611611
def fromkeys(cls, iterable, v=None):
612612
# There is no equivalent method for counters because the semantics
613-
# would be ambiguous in cases such as Counter('aaabbc', v=2).
613+
# would be ambiguous in cases such as Counter.fromkeys('aaabbc', v=2).
614614
# Initializing counters to zero values isn't necessary because zero
615615
# is already the default value for counter lookups. Initializing
616616
# to one is easily accomplished with Counter(set(iterable)). For

0 commit comments

Comments
 (0)