[issue10667] collections.Counter object in C
Raymond Hettinger
report at bugs.python.org
Sat Dec 11 02:01:47 CET 2010
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
I would like this API to "sit and cook" for a good while. There are many possible ways to add more methods and most be end-up being YAGNI.
Also, my experience with dict.fromkeys() is that a fair number of people get confused by alternative constructors. So, at this point I have zero interest in adding from_items().
Am taking the C optimizations under advisement. In the meantime, there is no need to keep submitting patch variations. The question is less how-to-do-it and more a question of whether-to-do-it. We try not to add an alternate C paths unless a feature is an important building block. There is an on-going maintenance cost and a risk of slightly different behaviors (at a minimum, the tracebacks look different and the code can't be traced through pdb). That being said, there is a nice speed-up to be had, so I'll give that some weight.
----------
priority: normal -> low
resolution: -> later
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10667>
_______________________________________
More information about the Python-bugs-list
mailing list