4 ms·
Unfortunately, Counter is not available before 2.7, so for many people it's a bit too early to require it.
by Camillo 14y ago
Unfortunately, Counter is not available before 2.7, so for many people it's a bit too early to require it.
- MBlume 14y agoThis. On reading this post, I ran to my computer to replace defaultdict(int) with Counter in some of my code, only to find that I couldn't use it yet.
- njharman 14y agoTwo years old is a long enough.
- sitkack 14y agoOSX 10.6.8 still has Python 2.6 as the system Python.
- raymondh 14y agoThere is a Python2.5 backport of collections.Counter() at http://code.activestate.com/recipes/576611/ http://code.activestate.com/recipes/576611/