[docs] [issue6893] defaultdict example in py3 doc should mention the new Counter class

Raymond Hettinger report at bugs.python.org
Thu Sep 16 21:25:54 CEST 2010

Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

This example needs to stay.  It was one of the principal motiviating use cases for defaultdict and it is a good, simple, understandable example of how to use it.

Also, I don't want to cross-link these two tools because they a subtly different (the default dict approach inserts a zero for missing elements while the Counter approach returns zero but does not insert it).

resolution:  -> rejected
status: open -> closed

Python tracker <report at bugs.python.org>

More information about the docs mailing list