[issue31265] Remove doubly-linked list from C OrderedDict

INADA Naoki report at bugs.python.org
Wed Aug 23 11:34:52 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue31265>
_______________________________________


More information about the Python-bugs-list mailing list