(type_, value_)
return retVal
Returns name of a enum member with a given value

    >>> enumValueToNameLookup(SORT_ORDER, 100)
    'LAST'
Returns name of a enum member with a given value
Returns name of a enum member with a given value
def enumValueToNameLookup(type_, value_):
    """
    Returns name of a enum member with a given value

    >>> enumValueToNameLookup(SORT_ORDER, 100)
    'LAST'
    """

    retVal = None

    for name, value in getPublicTypeMembers(type_):
        if value == value_:
            retVal = name
            break

    return retVal
def enumValueToNameLookup ( type_ , value_ ) : retVal = None for name , value in getPublicTypeMembers ( type_ ) : if value == value_ : retVal = name break return retVal