def GetConstCmt(const_id, repeatable):
    cmt = idaapi.get_enum_member_cmt(const_id, repeatable)

    if not cmt:
        return ""
    else:
        return cmt
Get comment of a constant
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetConstCmt