INADA Naoki added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31265>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to