diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2018-07-06 08:52:26 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 08:52:26 -0700 |
commit | dc9bc548994066897ca4edfdbf36ea9272bfdee9 (patch) | |
tree | b2bdfff4f3220b405877190364516310eb7b0f86 /Lib/collections | |
parent | bpo-34054: multiprocessing uses time.monotonic() (GH-8118) (diff) | |
download | cpython-dc9bc548994066897ca4edfdbf36ea9272bfdee9.tar.gz cpython-dc9bc548994066897ca4edfdbf36ea9272bfdee9.tar.bz2 cpython-dc9bc548994066897ca4edfdbf36ea9272bfdee9.zip |
Clarify that example in comment is about fromkeys() (GH-8141)
Diffstat (limited to 'Lib/collections')
-rw-r--r-- | Lib/collections/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index cd2d2bfc107..4724b0edf33 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 |