On Sep 28, 2012 9:49 AM, "Ian Kelly" <ian.g.ke...@gmail.com> wrote: > levels = 6 > for combination in itertools.product(xrange(n_syms), levels): > # do stuff
Sorry, that should have read "product(xrange(n_syms), repeat=levels)". The repeat argument is keyword-only.
-- http://mail.python.org/mailman/listinfo/python-list