[Python-ideas] collections.Counter multiplication

Chris Angelico rosuav at gmail.com
Thu May 30 17:20:27 CEST 2013


On Fri, May 31, 2013 at 1:18 AM, MRAB <python at mrabarnett.plus.com> wrote:
> "I have a batch of identical collections of items. How many do I have
> of each item?"

Perfect use for dictionary comprehension. I don't think this sort of
thing is common enough for builtin functionality...

ChrisA


More information about the Python-ideas mailing list