def SetFunctionFlags(ea, flags):
    func = idaapi.get_func(ea)

    if not func:
        return 0
    else:
        func.flags = flags
        idaapi.update_func(func)
        return 1
Remote version of registerProducer; same interface.
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetFunctionFlags--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/server.py/Request.view_registerProducer