Feb. 17, 2006
12:19 p.m.
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