Message300752
I would be very careful going down this path. Regular dict ordering is not yet guaranteed and is subject to change. Its design was primarily about compaction and the ordering was a side-effect. In contrast, the data structure for collections.OrderedDict() was designed specifically for maintaining order. It is likely that there are some workloads where the regular dict would degrade significantly compared to ordered dicts. |
|
Date |
User |
Action |
Args |
2017-08-23 14:22:13 | rhettinger | set | recipients:
+ rhettinger, methane |
2017-08-23 14:22:13 | rhettinger | set | messageid: <1503498133.91.0.859677980071.issue31265@psf.upfronthosting.co.za> |
2017-08-23 14:22:13 | rhettinger | link | issue31265 messages |
2017-08-23 14:22:13 | rhettinger | create | |
|