I want to be able to do something like:
foo = Counter(['bar', 'shoo', 'bar'])
tmp = {}
tmp[foo] = 5
In other words, is there a hashable equivalent for Counter?
Note that I can't use frozenset since I have repeated elements that I want to keep in the key.
Edit: In my actual application, the objects in foo may not be comparable with each other so the list cannot be sorted.