icalendar.caselessdict module#
- class icalendar.caselessdict.CaselessDict(*args, **kwargs)[source]#
Bases:
OrderedDict
A dictionary that isn’t case sensitive, and only uses strings as keys. Values retain their case.
- canonical_order = None#
- pop(key[, default]) v, remove specified key and return the corresponding value. [source]#
If the key is not found, return the default if given; otherwise, raise a KeyError.
- popitem()[source]#
Remove and return a (key, value) pair from the dictionary.
Pairs are returned in LIFO order if last is true or FIFO order if false.
- setdefault(key, value=None)[source]#
Insert key with a value of default if key is not in the dictionary.
Return the value for key if key is in the dictionary, else default.
- sorted_items()[source]#
Sorts items according to the canonical_order for the derived class. Items not specified in canonical_order will appear at the end.