05
Apr
Multi-dimensional dicts in Python & Django?
The code I’m working on frequently uses multi-dimensional dicts in Python. There is a bunch of code that seems to be always doing this: # a,b, and c have come from some external data source, QuerySet, etc. a = ‘axis_1′ b = ‘axis_2′ c = ‘axis_3′ d = ‘value’ if a not in context: context[a] [...]
Continue Reading →