[issue10533] defaultdict constructor with a concrete value
report at bugs.python.org
Thu Nov 25 21:25:48 CET 2010
Alex <alex.gaynor at gmail.com> added the comment:
I agree with Łukasz, it's more clutter than is worth for what amounts to: fallbackdict = lambda c, **kwargs: defaultdict(lambda c, **kwargs)
I will note, however, that almost all my use cases are with factories, primarily list set or int, and it was only this week that I first needed something else!
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list