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 pitrou
Recipients barry, eli.bendersky, eric.smith, ethan.furman, mrabarnett, pitrou, r.david.murray, rhettinger, theller, tim.peters, vstinner
Date 2013-09-09.20:44:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378759496.2502.14.camel@fsol>
In-reply-to <1378759279.34.0.459892033294.issue18986@psf.upfronthosting.co.za>
Content
> I also note that defaultdict is implemented via a special method on
> dict itself (__missing__), and if this one was implemented the same
> way it would be easy to combine the features.

It's not that simple: to remember the original casing you need either a
second container, or to use (original_key, value) tuples as values. Both
approaches have non-trivial repercussions on the implementation of many
methods.
History
Date User Action Args
2013-09-09 20:44:59pitrousetrecipients: + pitrou, tim.peters, barry, theller, rhettinger, vstinner, eric.smith, mrabarnett, r.david.murray, eli.bendersky, ethan.furman
2013-09-09 20:44:59pitroulinkissue18986 messages
2013-09-09 20:44:58pitroucreate