As far as I can see, people tend to agree that this is useful. So, unless someone steps up to oppose this, I'll file a feature request to the Python bug tracker.
Will propose an implementation based on ordered dict (that will be in 2.7/3.1 anyway).
Ordered dict then :-)It's also possible that the order matters. I think an iterable of tuples (such as returned by dict.items(), but any iterable will do) would be an okay interface.
Python-ideas mailing list