This is a dictionary that keeps the keys in order. The default order is the insertion order. The current order can be changed at any time.
The ODict class has this constructor:
data=) |
The ODict can be initialized with a Python dict or an ODict. The order after insertion is indeterminate if a plain dict is used.
ODict objects have the following methods:
) |
We use the format Dict(), so that the string is a valid Python representation of the Dict.
key,value) |
key) |
Raises an error if key does not exist.
data=) |
The new keys will be appended to the existing, but the order of the added keys is undetemined if data is a dict object. If data is an ODict its order will be respected..
data) |
keys) |
keys should be a list containing exactly all the keys from self.
) |
) |
) |