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 <1483075404.51.0.928511000404.issue28612@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2016-12-30 05:23:24rhettingersetrecipients: + rhettinger, docs@python, Jim.Jewett, ChrisBarker, Gaurav Tatke
2016-12-30 05:23:24rhettingersetmessageid: <1483075404.51.0.928511000404.issue28612@psf.upfronthosting.co.za>
2016-12-30 05:23:24rhettingerlinkissue28612 messages
2016-12-30 05:23:24rhettingercreate