Message197400
> 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. |
|
Date |
User |
Action |
Args |
2013-09-09 20:44:59 | pitrou | set | recipients:
+ pitrou, tim.peters, barry, theller, rhettinger, vstinner, eric.smith, mrabarnett, r.david.murray, eli.bendersky, ethan.furman |
2013-09-09 20:44:59 | pitrou | link | issue18986 messages |
2013-09-09 20:44:58 | pitrou | create | |
|