def enum_as_sequence(enum):
 return filter((lambda x: ((not x.startswith('__')) and (x not in ['_VALUES_TO_NAMES', '_NAMES_TO_VALUES']))), dir(enum))

def enum_as_sequence ( enum ) : return filter ( ( lambda x : ( ( not x . startswith ( '__' ) ) and ( x not in [ '_VALUES_TO_NAMES' , '_NAMES_TO_VALUES' ] ) ) ) , dir ( enum ) )
returns an array whose entries are the names of the enums constants .