[Python-checkins] cpython (merge 3.2 -> default): merge with 3.2

sandro.tosi python-checkins at python.org
Sun Dec 25 17:26:18 CET 2011


http://hg.python.org/cpython/rev/e58c67d58d14
changeset:   74177:e58c67d58d14
parent:      74175:9df400dc6559
parent:      74176:6924b9548962
user:        Sandro Tosi <sandro.tosi at gmail.com>
date:        Sun Dec 25 17:26:09 2011 +0100
summary:
  merge with 3.2

files:
  Doc/library/itertools.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst
--- a/Doc/library/itertools.rst
+++ b/Doc/library/itertools.rst
@@ -457,7 +457,7 @@
             if r > n:
                 return
             indices = list(range(n))
-            cycles = range(n, n-r, -1)
+            cycles = list(range(n, n-r, -1))
             yield tuple(pool[i] for i in indices[:r])
             while n:
                 for i in reversed(range(r)):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list