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

Sandro Tosi sandro.tosi at gmail.com
Sun Dec 25 17:26:45 CET 2011


Hello Romain,

On Fri, Dec 2, 2011 at 17:18, Romain MORLEVAT <romainmorlevat at gmail.com> wrote:
> 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)).

Thanks, this has now been fixed.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list