def _get_candidate_pos(version):
 return [i for (i, part) in enumerate(version) if (part in CANDIDATE_MARKERS)][0]

def _get_candidate_pos ( version ) : return [ i for ( i , part ) in enumerate ( version ) if ( part in CANDIDATE_MARKERS ) ] [ 0 ]
returns the position of the candidate marker .