From fab57ccd1307deb8c803149de7f5b0e9ea5726b5 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Sat, 29 Sep 2012 11:51:37 -0700 Subject: [PATCH] Close issue #16077: fix code example in documentation of reduce() built-in (from docs@). --- Doc/library/functions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index a1f7534b43b..25d09d1a817 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1100,7 +1100,7 @@ available. They are listed here in alphabetical order. except StopIteration: raise TypeError('reduce() of empty sequence with no initial value') accum_value = initializer - for x in iterable: + for x in it: accum_value = function(accum_value, x) return accum_value