Message122383
I would love this functionality (I almost always initialise defaultdict with a lambda that just returns a concrete value).
Unfortunately it seems like adding a keyword argument isn't possible because defaultdict takes arbitrary keyword args (and populates the dict with them).
defaultdict(lambda: 1, foo=1, bar=2, baz=3) |
|
Date |
User |
Action |
Args |
2010-11-25 17:07:24 | michael.foord | set | recipients:
+ michael.foord, holdenweb, lukasz.langa |
2010-11-25 17:07:24 | michael.foord | set | messageid: <1290704844.19.0.0527518216786.issue10533@psf.upfronthosting.co.za> |
2010-11-25 17:07:22 | michael.foord | link | issue10533 messages |
2010-11-25 17:07:22 | michael.foord | create | |
|