On Thu, 05 Mar 2009 18:07:29 +0100, Peter Otten <__pete...@web.de> wrote:
[snip]
>
> Just for fun here's an alternative version of your function
>
> def generate_crossover(pop, prob):
>     for a, b in zip(*[iter(pop)]*2):
. . .

Good grief!  That's devilishly obscure.

-- 
To email me, substitute nowhere->spamcop, invalid->net.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to