This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients ChrisBarker, Gaurav Tatke, Jim.Jewett, docs@python, rhettinger
Date 2016-12-30.05:23:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I like the idea of adding a mapping example but don't want to encourage use of defaultdict in contexts like this one.  A defaultdict usefully specifies a default but has the unpleasant side-effect of altering the dictionary (adding new keys) during the look-up phase.  This has bitten a lot of people (including famous ones like Peter Norvig).
Date User Action Args
2016-12-30 05:23:24rhettingersetrecipients: + rhettinger, docs@python, Jim.Jewett, ChrisBarker, Gaurav Tatke
2016-12-30 05:23:24rhettingersetmessageid: <>
2016-12-30 05:23:24rhettingerlinkissue28612 messages
2016-12-30 05:23:24rhettingercreate