Are there any reasons not to use an OrderedDict?
I'm referring to the OrderedDict from the collections module, which is an ordered dictionary. If it has the added functionality of being orderable, which I realize may often not be necessary but even so, are there any downsides? Is it slower? Is it missing any functionality? I didn't see any missing methods. In short, why shouldn't I always use this instead of a normal dictionary? OrderedDict is a subclass of dict , and needs more memory to keep track of the order in which keys are added. This isn't trivial. The implementation adds a second dict under the covers, and a doubly-linked list of