Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
generate.py

README.md

This is example to show how to generate nested python dictionary object without explicit new object generation.

Key principle

from collections import defaultdict
_default_data = lambda: defaultdict(_default_data)
data = _default_data()