Message79690
> 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? |
|
Date |
User |
Action |
Args |
2009-01-12 18:20:58 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, gvanrossum, georg.brandl, rhettinger, pitrou, bethard |
2009-01-12 18:20:58 | amaury.forgeotdarc | set | messageid: <1231784458.07.0.761257685691.issue1696199@psf.upfronthosting.co.za> |
2009-01-12 18:20:57 | amaury.forgeotdarc | link | issue1696199 messages |
2009-01-12 18:20:57 | amaury.forgeotdarc | create | |
|