one-line tree in python Aug 30, 2012 Brilliant: from collections import defaultdict def tree(): return defaultdict(tree) https://gist.github.com/2012250