Example #1
0
 def __getattr__(self, key):
     if key in self:
         return self[key].value
     return OrderedDict.__getattr__(self, key)
Example #2
0
 def __getattr__(self, k):
     if k == "_OrderedDict__root":
         return OrderedDict.__getattr__(k)
     return self[k]
Example #3
0
 def __getattr__(self, name):
     if name == "method":
         return self.__method
     else:
         return OrderedDict.__getattr__(self, name)
Example #4
0
 def __getattr__(self, item):
     if item in self:
         return self[item]
     return OrderedDict.__getattr__(self, item)
Example #5
0
 def __getattr__(self, key):
     if key.startswith("_OrderedDict__"):
         return _OrderedDict.__getattr__(self, key)
     return self[key]