dictionary idiom needed

Brandon your.master at gmail.com
Thu Dec 11 22:32:00 CET 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