Hello,<br><br>I think I found a mistake in the itertools.permutations() exemple code (<a href="http://docs.python.org/py3k/library/itertools.html?highlight=itertools#itertools.permutations">http://docs.python.org/py3k/library/itertools.html?highlight=itertools#itertools.permutations</a>)<br>

At the tenth line, the <i>cycles = range(n, n-r, -1)</i>, must be <i>cycles = list(range(n, n-r, -1))</i>.<br><br>Greetings,<br><br>Romain<br>--<br clear="all"><a href="http://www.romainmorlevat.com">www.romainmorlevat.com</a><br>