[Python-ideas] collections.Counter multiplication

MRAB python at mrabarnett.plus.com
Thu May 30 17:52:56 CEST 2013


On 30/05/2013 16:20, Chris Angelico wrote:
> 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...
>
...and I haven't needed such functionality thus far, so I'll leave it
at that. :-)


More information about the Python-ideas mailing list