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 pitrou
Recipients ezio.melotti, loewis, pitrou, rhettinger, serhiy.storchaka, vstinner, yaubi
Date 2014-07-29.16:17:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406650662.75.0.471335287875.issue22097@psf.upfronthosting.co.za>
In-reply-to
Content
> This does not meet your requirement of supporting insert_after(x),
> its insert(x, before) requires to give a dllistnode.

Indeed it lacks that piece of prettiness in the API. And adding a mapping to allow lookups from item to node really means using a orderedset or ordereddict-like structure. Which is why I was proposing to reuse the existing infrastructure.

(note that I *cannot* reuse it from my own third-party class, since the necessary bits are all internal)

Still you may make the point that ordereddict is not appropriate, andorderedset would be better for this API. Raymond, would you support adding an orderedset to the collections module?
History
Date User Action Args
2014-07-29 16:17:42pitrousetrecipients: + pitrou, loewis, rhettinger, vstinner, ezio.melotti, yaubi, serhiy.storchaka
2014-07-29 16:17:42pitrousetmessageid: <1406650662.75.0.471335287875.issue22097@psf.upfronthosting.co.za>
2014-07-29 16:17:42pitroulinkissue22097 messages
2014-07-29 16:17:42pitroucreate