Raymond Hettinger wrote: > def count(self, value, qty=1): > try: > self[key] += qty > except KeyError: > self[key] = qty I presume that the argument list is a typo, and should actually be def count(self, key, qty=1): ... Correct? Jeff Shannon