Chris Rebert <c...@rebertia.com> writes:
>    for i in range(len(fap)):
>        selected_population.append(choice(rw))

"for i in range(len(something))" is a bit of a code smell.  You could
instead say:

   selected_population.extend(choice(rw) for x in fap)

The unused "x" is also a slight code smell, but the most obvious cures
involve using the itertools module in ways that are worse than the disease.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to