This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, bethard, georg.brandl, gvanrossum, pitrou, rhettinger
Date 2009-01-12.18:20:57
SpamBayes Score 0.18717664
Marked as misclassified No
Message-id <1231784458.07.0.761257685691.issue1696199@psf.upfronthosting.co.za>
In-reply-to
Content
> the typical usage is c=Counter(myseq) with no other non-dict accesses
> (mostly just c[elem]+=1 and print c[elem])

Isn't collections.defaultdict(lambda:0) enough for this purpose?
History
Date User Action Args
2009-01-12 18:20:58amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, gvanrossum, georg.brandl, rhettinger, pitrou, bethard
2009-01-12 18:20:58amaury.forgeotdarcsetmessageid: <1231784458.07.0.761257685691.issue1696199@psf.upfronthosting.co.za>
2009-01-12 18:20:57amaury.forgeotdarclinkissue1696199 messages
2009-01-12 18:20:57amaury.forgeotdarccreate