[Python-Dev] Proposal: defaultdict (original) (raw)
Raymond Hettinger python at rcn.com
Fri Feb 17 13:19:11 CET 2006
- Previous message: [Python-Dev] Proposal: defaultdict
- Next message: [Python-Dev] Proposal: defaultdict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Proposal: defaultdict
- Next message: [Python-Dev] Proposal: defaultdict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]