openpyxl.compat.odict module¶
-
class
openpyxl.compat.odict.OrderedDict(*args, **kwds)[source]¶ Bases:
dictDictionary that remembers insertion order
-
classmethod
fromkeys(S[, v]) → New ordered dictionary with keys from S[source]¶ and values equal to v (which defaults to None).
-
pop(k[, d]) → v, remove specified key and return the corresponding value.[source]¶ If key is not found, d is returned if given, otherwise KeyError is raised.
-
popitem() → (k, v), return and remove a (key, value) pair.[source]¶ Pairs are returned in LIFO order if last is true or FIFO order if false.
-
update(E, **F) → None. Update od from dict/iterable E and F.[source]¶ If E is a dict instance, does: for k in E: od[k] = E[k] If E has a .keys() method, does: for k in E.keys(): od[k] = E[k] Or if E is an iterable of items, does: for k, v in E: od[k] = v In either case, this is followed by: for k, v in F.items(): od[k] = v
-
classmethod