Inada Naoki <songofaca...@gmail.com> added the comment:
There are some more aggressive ideas. When Eric created C version of OrderedDict, he intended to use it for PEP 468. Unlike pure Python implementation, PyDict_GetItem returns value, not node of linked list. But now, PEP 468 is implemented in regular dict. How about raising DeprecationWarning when OrderedDict is passed to PyDict_* APIs? LRU implementation of functools is much more efficient than OrderedDict. OrderedDict can be achieve same performance and efficiency when node of linked list is stored in underlaying dict. ---------- nosy: +eric.snow _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31954> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com