[Python-ideas] collections.Counter should implement __mul__, __rmul__
Steven D'Aprano
steve at pearwood.info
Mon Apr 16 05:41:14 EDT 2018
On Mon, Apr 16, 2018 at 05:22:54AM +0000, Steve Barnes wrote:
> Wouldn't it make sense to have the current counter behaviour, (negative
> counts not allowed), and also a counter that did allow negative values
> (my bank doesn't seem to have a problem with my balance being able to go
> below negative)
I wish my bank was as understanding, they keep telling me I'm
overdrawn...
*wink*
> and possibly at the same time a counter class that
> allowed fractional counts?
I understand the idea of counting in fractions (1/3, 2/3, 1, 1+1/3, ...)
but I don't understand what fractional frequencies would mean.
What's your use-case for fractional frequencies?
--
Steve
More information about the Python-ideas
mailing list