Publisher review:Ordered Dictionary class extends UserDict to record the order in which items are added. Often it is useful to use a dictionary to store information where the order of that information matters. In Python, one must usually keep a list of keys and pass the list along with the dictionary to any functions that need to maintain this order.
This implementation stores the list of keys internally and overrides the usual accessor methods to keep the list up to date with each operation.
This dictionary class extends UserDict to record the order in which items are added. Calling keys(), values(), items(), etc. will return results in this order. This works similarly to the array type in PHP.
Ordered Dictionary 1.2 is a Python script for Programming Methods and Algorithms scripts design by David Benjamin.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Ordered Dictionary class extends UserDict to record the order in which items are added.
Operating system:Windows / Linux / Mac OS / BSD / Solaris