def SetFunctionCmt(ea, cmt, repeatable):
    func = idaapi.get_func(ea)

    if not func:
        return None
    else:
        return idaapi.set_func_cmt(func, cmt, repeatable)
Set function comment
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SetFunctionCmt