Asterisk - The Open Source Telephony Project
18.5.0
|
Public Member Functions | |
def | __delitem__ (self, key, dict_delitem=dict.__delitem__) |
def | __eq__ (self, other) |
def | __init__ (self, args, kwds) |
def | __iter__ (self) |
def | __ne__ (self, other) |
def | __reduce__ (self) |
def | __repr__ (self, _repr_running={}) |
def | __reversed__ (self) |
def | __setitem__ (self, key, value, dict_setitem=dict.__setitem__) |
def | clear (self) |
def | copy (self) |
def | fromkeys (cls, iterable, value=None) |
def | items (self) |
def | iteritems (self) |
def | iterkeys (self) |
def | itervalues (self) |
def | keys (self) |
def | pop (self, key, default=__marker) |
def | popitem (self, last=True) |
def | setdefault (self, key, default=None) |
def | update (args, kwds) |
def | values (self) |
def | viewitems (self) |
def | viewkeys (self) |
def | viewvalues (self) |
Definition at line 18 of file astdicts.py.
def __init__ | ( | self, | |
args, | |||
kwds | |||
) |
Initialize an ordered dictionary. Signature is the same as for regular dictionaries, but keyword arguments are not recommended because their insertion order is arbitrary.
Definition at line 30 of file astdicts.py.
References OrderedDict.__map, OrderedDict.__root, OrderedDict.__update, and len().
def __delitem__ | ( | self, | |
key, | |||
dict_delitem = dict.__delitem__ |
|||
) |
def __eq__ | ( | self, | |
other | |||
) |
od.__eq__(y) <==> od==y. Comparison to another OD is order-sensitive while comparison to a regular mapping is order-insensitive.
Definition at line 237 of file astdicts.py.
References playtones_def.items, playtones_state.items, ewscal_pvt.items, OrderedDict.items(), notify_option.items, resource_list.items, featuregroup.items, test_config.items, and len().
def __iter__ | ( | self | ) |
Definition at line 65 of file astdicts.py.
References OrderedDict.__root.
def __ne__ | ( | self, | |
other | |||
) |
Definition at line 246 of file astdicts.py.
def __reduce__ | ( | self | ) |
Definition at line 212 of file astdicts.py.
References OrderedDict.copy().
def __repr__ | ( | self, | |
_repr_running = {} |
|||
) |
Definition at line 199 of file astdicts.py.
References id, playtones_def.items, playtones_state.items, ewscal_pvt.items, OrderedDict.items(), notify_option.items, resource_list.items, featuregroup.items, and test_config.items.
def __reversed__ | ( | self | ) |
Definition at line 73 of file astdicts.py.
References OrderedDict.__root.
def __setitem__ | ( | self, | |
key, | |||
value, | |||
dict_setitem = dict.__setitem__ |
|||
) |
Definition at line 46 of file astdicts.py.
References OrderedDict.__map, and OrderedDict.__root.
Referenced by MultiOrderedDict.insert().
def clear | ( | self | ) |
Definition at line 81 of file astdicts.py.
References OrderedDict.__map, OrderedDict.__root, and OrderedDict.itervalues().
def copy | ( | self | ) |
Definition at line 222 of file astdicts.py.
Referenced by OrderedDict.__reduce__().
def fromkeys | ( | cls, | |
iterable, | |||
value = None |
|||
) |
OD.fromkeys(S[, v]) -> New ordered dictionary with keys from S and values equal to v (which defaults to None).
Definition at line 227 of file astdicts.py.
def items | ( | self | ) |
Definition at line 126 of file astdicts.py.
Referenced by OrderedDict.__eq__(), and OrderedDict.__repr__().
def iteritems | ( | self | ) |
Definition at line 139 of file astdicts.py.
Referenced by MultiOrderedDict.copy().
def iterkeys | ( | self | ) |
Definition at line 130 of file astdicts.py.
def itervalues | ( | self | ) |
Definition at line 134 of file astdicts.py.
Referenced by OrderedDict.clear().
def keys | ( | self | ) |
Definition at line 118 of file astdicts.py.
def pop | ( | self, | |
key, | |||
default = __marker |
|||
) |
od.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised.
Definition at line 179 of file astdicts.py.
References OrderedDict.__marker.
Referenced by OrderedDict.__delitem__().
def popitem | ( | self, | |
last = True |
|||
) |
od.popitem() -> (k, v), return and remove a (key, value) pair. Pairs are returned in LIFO order if last is true or FIFO order if false.
Definition at line 93 of file astdicts.py.
References OrderedDict.__map, and OrderedDict.__root.
def setdefault | ( | self, | |
key, | |||
default = None |
|||
) |
Definition at line 192 of file astdicts.py.
def update | ( | args, | |
kwds | |||
) |
od.update(E, **F) -> None. Update od from dict/iterable E and F. 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
Definition at line 144 of file astdicts.py.
References len().
def values | ( | self | ) |
Definition at line 122 of file astdicts.py.
def viewitems | ( | self | ) |
Definition at line 259 of file astdicts.py.
def viewkeys | ( | self | ) |
Definition at line 251 of file astdicts.py.
def viewvalues | ( | self | ) |
Definition at line 255 of file astdicts.py.