Why are there 2 implementations of OrderedDict

Not completely true, although the fact that dict became ordered has reduced usage of OrderedDict significantly.

OrderedDict is doubly-linked list that has functionality that dict does not, which is mainly what concerns changing order.

However, it is currently fairly limited to move_to_end method.

I have made some suggestions to revive it a bit:

And although everyone seemed to agree that it would make sense, no one took it up. I guess it is just not very commonly needed.

2 Likes