Can't sum Counter objects with client code (possibly skulpt)

yeah - it looks like skulpt hasn’t overloaded the binary operations for Counter

You could hack the behaviour by calling update

def sum_counters(list_dicts):
  x = Counter()
  for d in list_dicts:
    x.update(d)
  return x
2 Likes