[issue22097] Linked list API for ordereddict

Yoann Aubineau report at bugs.python.org
Tue Jul 29 02:49:54 CEST 2014


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 <report at bugs.python.org>
<http://bugs.python.org/issue22097>
_______________________________________


More information about the Python-bugs-list mailing list