Message224207
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. |
|
Date |
User |
Action |
Args |
2014-07-29 00:49:54 | yaubi | set | recipients:
+ yaubi, rhettinger, pitrou, vstinner, ezio.melotti, serhiy.storchaka |
2014-07-29 00:49:53 | yaubi | set | messageid: <1406594993.99.0.90820355546.issue22097@psf.upfronthosting.co.za> |
2014-07-29 00:49:53 | yaubi | link | issue22097 messages |
2014-07-29 00:49:53 | yaubi | create | |
|