tumble. phil adams.

<witty description />
python nested defaultdicts

d = defaultdict(lambda : defaultdict(int)) d['a']['b'] += 1

awesome.

— 1 year ago with 1 note
  1. computersnob posted this