SAFplus Runtime Director API
3.0.5
|
The dot class lets you access fields either through field notation (.) or dictionary notation ([]). More...
Public Member Functions | |
def | __init__ |
def | __str__ |
def | __repr__ |
def | has_key |
def | keys |
def | values |
def | items |
def | clear |
def | get |
def | setdefault |
def | pop |
def | popitem |
def | iteritems |
def | iterkeys |
def | itervalues |
def | update |
def | __getitem__ |
def | __setitem__ |
def | __delitem__ |
def | __len__ |
def | __contains__ |
def | flatten |
return a non-nested dictionary which contains all the elements of a nested dictionary, but the keys have been transformed to contain the nesting hierarchy. More... | |
The dot class lets you access fields either through field notation (.) or dictionary notation ([]).
def dot.Dot.__init__ | ( | self, | |
dict = {} |
|||
) |
def dot.Dot.__contains__ | ( | self, | |
item | |||
) |
def dot.Dot.__delitem__ | ( | self, | |
key | |||
) |
def dot.Dot.__getitem__ | ( | self, | |
key | |||
) |
def dot.Dot.__len__ | ( | self | ) |
def dot.Dot.__repr__ | ( | self | ) |
def dot.Dot.__setitem__ | ( | self, | |
key, | |||
val | |||
) |
def dot.Dot.__str__ | ( | self | ) |
def dot.Dot.clear | ( | self | ) |
def dot.Dot.flatten | ( | self, | |
sep = "." , |
|||
prefix = None |
|||
) |
return a non-nested dictionary which contains all the elements of a nested dictionary, but the keys have been transformed to contain the nesting hierarchy.
For example {'a':{'b':'1','c':'2'}} -> {'a.b':'1','a.c':'2'}
sep | (Optional) The separator to use between keys. Default is . |
prefix | (Optional) A string to prepend to each key |
def dot.Dot.get | ( | self, | |
key, | |||
default = None |
|||
) |
def dot.Dot.has_key | ( | self, | |
key | |||
) |
def dot.Dot.items | ( | self | ) |
def dot.Dot.iteritems | ( | self | ) |
def dot.Dot.iterkeys | ( | self | ) |
def dot.Dot.itervalues | ( | self | ) |
def dot.Dot.keys | ( | self | ) |
def dot.Dot.pop | ( | self, | |
key, | |||
default = None |
|||
) |
def dot.Dot.popitem | ( | self | ) |
def dot.Dot.setdefault | ( | self, | |
key, | |||
default = None |
|||
) |
def dot.Dot.update | ( | self, | |
d | |||
) |
def dot.Dot.values | ( | self | ) |