Message340183
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. |
|
Date |
User |
Action |
Args |
2019-04-14 05:57:56 | methane | set | recipients:
+ methane, tim.peters, rhettinger, eric.snow, serhiy.storchaka |
2019-04-14 05:57:56 | methane | set | messageid: <1555221476.75.0.394641255026.issue31954@roundup.psfhosted.org> |
2019-04-14 05:57:56 | methane | link | issue31954 messages |
2019-04-14 05:57:56 | methane | create | |
|