Rémi Lapeyre <remi.lape...@henki.fr> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33462>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to