Message300758
Another idea is making "dict preserves insertion order" as language spec.
There are still some difference between dict and odict: .move_to_end() and __eq__.
But most use cases of odict is just keep insertion order.
For example, parsing config file, json, or csv.
In such cases, people can get all benefits (less memory and faster creation, iteration and deallocation) of dict if it's guaranteed. |
|
Date |
User |
Action |
Args |
2017-08-23 15:34:53 | methane | set | recipients:
+ methane, rhettinger, serhiy.storchaka |
2017-08-23 15:34:52 | methane | set | messageid: <1503502492.97.0.25223981076.issue31265@psf.upfronthosting.co.za> |
2017-08-23 15:34:52 | methane | link | issue31265 messages |
2017-08-23 15:34:52 | methane | create | |
|