(self, key, default=None)
Dictionary style get() method, including 'value' lookup.
Dictionary style get() method, including 'value' lookup.
Dictionary style get () method including value lookup .
def getvalue(self, key, default=None):
        """Dictionary style get() method, including 'value' lookup."""
        if key in self:
            value = self[key]
            if isinstance(value, list):
                return [x.value for x in value]
            else:
                return value.value
        else:
            return default
def getvalue ( self , key , default = None ) : if key in self : value = self [ key ] if isinstance ( value , list ) : return [ x . value for x in value ] else : return value . value else : return default