suggestion: recursive collections.defaultdict

tutufan at gmail.com tutufan at gmail.com
Fri Jun 29 00:35:49 CEST 2007


On Jun 18, 1:56 pm, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
> In <1182184918.766497.315... at k79g2000hse.googlegroups.com>,
>
> tutu... at gmail.com wrote:
> > It seems like
>
> >     x = defaultdict(defaultdict(list))
>
> > should do the obvious, but it doesn't.
>
> It *does* the obvious.  Parenthesis after a name means: call this object
> *now*.  Any other behavior wouldn't be obvious.


Well, some of us are in the "slow" class...





More information about the Python-list mailing list