[issue10667] collections.Counter object in C

Antoine Pitrou report at bugs.python.org
Fri Dec 10 00:24:04 CET 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

When adding some C accelerations, we often try to keep a pure Python alternative in the stdlib, since it can then benefit other Python implementations (and easy prototyping).

If you move some of the methods inside a mixin and use multiple inheritance with the base C impl, this should be easy.
Also, the unit tests should then test both the C impl and the pure Python impl.

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list