Message284309
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:24 | rhettinger | set | recipients:
+ rhettinger, docs@python, Jim.Jewett, ChrisBarker, Gaurav Tatke |
2016-12-30 05:23:24 | rhettinger | set | messageid: <1483075404.51.0.928511000404.issue28612@psf.upfronthosting.co.za> |
2016-12-30 05:23:24 | rhettinger | link | issue28612 messages |
2016-12-30 05:23:24 | rhettinger | create | |
|