def mutUniform(individual, expr, pset):
 index = random.randrange(len(individual))
 slice_ = individual.searchSubtree(index)
 type_ = individual[index].ret
 individual[slice_] = expr(pset=pset, type_=type_)
 return (individual,)

def mutUniform ( individual , expr , pset ) : index = random . randrange ( len ( individual ) ) slice_ = individual . searchSubtree ( index ) type_ = individual [ index ] . ret individual [ slice_ ] = expr ( pset = pset , type_ = type_ ) return ( individual , )
randomly select a point in the tree *individual* .