Open dhh1128 opened 9 years ago
Consider this python code:
if cat in stats.response_counts_by_category: stats.response_counts_by_category[cat] += 1 else: stats.response_counts_by_category[cat] = 1
We should be able to do something much cleaner, along the lines of:
dict.Increment or set(key, incr, initial value)
Consider this python code:
We should be able to do something much cleaner, along the lines of: