<p>On Sep 28, 2012 9:49 AM, "Ian Kelly" <<a href="mailto:ian.g.kelly@gmail.com">ian.g.kelly@gmail.com</a>> wrote:<br>
> levels = 6<br>
> for combination in itertools.product(xrange(n_syms), levels):<br>
>     # do stuff</p>
<p>Sorry, that should have read "product(xrange(n_syms), repeat=levels)". The repeat argument is keyword-only.<br>
</p>