From dc9bc548994066897ca4edfdbf36ea9272bfdee9 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 6 Jul 2018 08:52:26 -0700 Subject: Clarify that example in comment is about fromkeys() (GH-8141) --- Lib/collections/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index cd2d2bf..4724b0e 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -610,7 +610,7 @@ class Counter(dict): @classmethod def fromkeys(cls, iterable, v=None): # There is no equivalent method for counters because the semantics - # would be ambiguous in cases such as Counter('aaabbc', v=2). + # would be ambiguous in cases such as Counter.fromkeys('aaabbc', v=2). # Initializing counters to zero values isn't necessary because zero # is already the default value for counter lookups. Initializing # to one is easily accomplished with Counter(set(iterable)). For -- cgit v0.12