Message398708
It was reverted because it did not keep the C version in harmony with the pure Python version. In the pure Python version pop() calls __getitem__ and __delitem__ which can be overridden in subclasses of OrederedDict. My patch always called dict.__getitem__ and dict.__delitem__.
But I see now clearer what is the problem with the current C code. It removes the key from the linked list before calling __delitem__ which itself removes the key from the linked list. Perhaps I can fix it correctly this time. |
|
Date |
User |
Action |
Args |
2021-08-01 15:40:20 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, methane, python-dev, eric.snow, zach.ware, josh.r, xiang.zhang, kaniini, Dennis Sweeney |
2021-08-01 15:40:20 | serhiy.storchaka | set | messageid: <1627832420.08.0.835487264324.issue27275@roundup.psfhosted.org> |
2021-08-01 15:40:20 | serhiy.storchaka | link | issue27275 messages |
2021-08-01 15:40:20 | serhiy.storchaka | create | |
|