def SetFunctionAttr(ea, attr, value):
    func = idaapi.get_func(ea)

    if func:
        _IDC_SetAttr(func, _FUNCATTRMAP, attr, value)
        return idaapi.update_func(func)
    return 0
Set a function attribute
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetFunctionAttr