[docs] Mistake in the itertools.permutations() exemple code

Romain MORLEVAT romainmorlevat at gmail.com
Fri Dec 2 17:18:55 CET 2011


Hello,

I think I found a mistake in the itertools.permutations() exemple code (
http://docs.python.org/py3k/library/itertools.html?highlight=itertools#itertools.permutations
)
At the tenth line, the *cycles = range(n, n-r, -1)*, must be *cycles =
list(range(n, n-r, -1))*.

Greetings,

Romain
--
www.romainmorlevat.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/docs/attachments/20111202/a81f5f17/attachment.html>


More information about the docs mailing list