SilentGhost <michael.mischurow+...@gmail.com> added the comment:

I've never meant to suggest any kind of replacement of the Counter with
my example. I just tried to show that 

self[elem] += 1    # line 430 of collections.py

which at initialisation naturally propagates to __missing__ is somewhat
slow. and had it been possible to always have key in the Counter, it
might have speed up initialisation and/or update

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6370>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to