Yoann Aubineau added the comment:

Here is an attempt to implement such an API. The patch adds 4 methods to 
OrderedDict: move_before, move_after, insert_before and insert_after with 
corresponding tests.

The method signatures do not feel right though. I am not sure where the 
reference key should be placed in the argument list. It is especially ambiguous 
with move_* methods which simply take two keys with no hint on the one that 
will actually be moved.

----------
keywords: +patch
Added file: http://bugs.python.org/file36148/issue22097.patch

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

Reply via email to