dictionary idiom needed

Brandon your.master at gmail.com
Thu Dec 11 16:32:00 EST 2008


> >>> d = defaultdict(lambda: defaultdict(int))
>

> Arnaud

Ah... so that's what lambdas are for.  Many thanks!

Brandon



More information about the Python-list mailing list