So when I print the Counter (from collections import Counter) to a file I always get this the literal Counter ({\'Foo\': 12})
from collections import Counter
Counter ({\'Foo\': 12})
Is there anyw
Well this isn't very elegant, but you can simply cast it as a string and cut off the first 8 and last 1 letters:
x = Counter({'Foo': 12}) print str(x)[8:-1]