Counter Class -- Bag/Multiset
python at rcn.com
Thu Jan 22 19:11:37 CET 2009
The collections module in Python 2.7 and Python 3.1 has gotten a new
Counter class that works like bags and multisets in other languages.
I've adapted it for Python2.5/2.6 so people can start using it right
Here's a link to the docs for the new class:
More information about the Python-list