[issue25478] Consider adding a normalize() method to collections.Counter()

Josh Rosenberg report at bugs.python.org
Mon Oct 26 22:39:28 EDT 2015


Josh Rosenberg added the comment:

Counter is documented as being primarily intended for integer counts. While you can use them with floats, I'm not sure they're the right data type for this use case. Having some methods that only make sense with floats, and others (like elements) that only make sense with integers is just confusing.

----------
nosy: +josh.r

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25478>
_______________________________________


More information about the Python-bugs-list mailing list