[Python-ideas] collections.Counter should implement __mul__, __rmul__

Raymond Hettinger raymond.hettinger at gmail.com
Mon Apr 16 02:58:05 EDT 2018



> On Apr 15, 2018, at 10:51 PM, Tim Peters <tim.peters at gmail.com> wrote:
> 
> I also have no problem with inplace operators.  Or with adding
> `Counter /= scalar", for that matter.

But surely __rdiv__() would be over the top, harmonic means be damned ;-)


Raymond






More information about the Python-ideas mailing list