This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yaubi
Recipients ezio.melotti, pitrou, rhettinger, serhiy.storchaka, vstinner, yaubi
Date 2014-07-29.00:49:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406594993.99.0.90820355546.issue22097@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-07-29 00:49:54yaubisetrecipients: + yaubi, rhettinger, pitrou, vstinner, ezio.melotti, serhiy.storchaka
2014-07-29 00:49:53yaubisetmessageid: <1406594993.99.0.90820355546.issue22097@psf.upfronthosting.co.za>
2014-07-29 00:49:53yaubilinkissue22097 messages
2014-07-29 00:49:53yaubicreate