[issue11733] Implement a `Counter.elements_count` method
Raymond Hettinger
report at bugs.python.org
Thu Mar 31 23:47:08 CEST 2011
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Thanks for the feature request. Py3.3 is a long ways away, so I'll leave this open for a while.
Comments in favor:
* Precedent with Smalltalk bags that know their total length
Comments against:
* sum(c.values()) is trivial to write
* fattening the API makes it harder to learn and remember
----------
priority: normal -> low
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11733>
_______________________________________
More information about the Python-bugs-list
mailing list