Message319505
Hi, I took a look at the code of OrderedDict it's using the double linked-list to iterate through the items using _odictnode_PREV and _odictnode_NEXT.
Since ordereddict needs to support move_to_end that will change the iterating order while dict does not, is it possible to share the code for __reversed__? As I understand it, the current code for OrderedDict and dict are not sharing code for the implementation of __iter__ and I'm not sure how it would be possible to do so. |
|
Date |
User |
Action |
Args |
2018-06-14 10:15:40 | remi.lapeyre | set | recipients:
+ remi.lapeyre, tim.peters, rhettinger, methane, eric.snow, serhiy.storchaka, selik |
2018-06-14 10:15:40 | remi.lapeyre | set | messageid: <1528971340.34.0.947875510639.issue33462@psf.upfronthosting.co.za> |
2018-06-14 10:15:40 | remi.lapeyre | link | issue33462 messages |
2018-06-14 10:15:40 | remi.lapeyre | create | |
|