

def output(self, key, obj):
    "Pulls the value for the given key from the object, applies the\n        field's formatting and returns the result. If the key is not found\n        in the object, returns the default value. Field classes that create\n        values which do not require the existence of the key in the object\n        should override this and return the desired value.\n\n        :exception MarshallingException: In case of formatting problem\n        "
    value = get_value((value if (self.attribute is None) else self.attribute), obj)
    if (value is None):
        return self.default
    return self.format(value)

dataset/ETHPy150Open flask-restful/flask-restful/flask_restful/fields.py Raw.output/VarMisuse@21/176 `key`->`value`