[Python-Dev] Proposal: defaultdict

Raymond Hettinger python at rcn.com
Fri Feb 17 13:19:11 CET 2006


> My conclusion is that setdefault() is a failure -- it was a
> well-intentioned construct, but doesn't actually create more readable
> code.

It was an across the board failure:  naming, clarity, efficiency.
Can we agree to slate dict.setdefault() to disappear in Py3.0?


Raymond


More information about the Python-Dev mailing list