It seems like

    x = defaultdict(defaultdict(list))

should do the obvious, but it doesn't.  This seems to work

    y = defaultdict(lambda: defaultdict(list))

though is a bit uglier.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to