[Python-ideas] defaultdict factory argument

Chris Rebert pyideas at rebertia.com
Sun Jan 18 02:44:44 CET 2009

On Sat, Jan 17, 2009 at 5:35 PM, Zac Burns <zac256 at gmail.com> wrote:
> I think defaultdict would be more useful if one could initialize it
> with the option to have the key that is being looked up passed to
> default_factory.

While I don't disagree in principle, giving an example use-case would
probably help.


Follow the path of the Iguana...

More information about the Python-ideas mailing list