From: Chris Jerdonek Date: Sat, 29 Sep 2012 18:51:37 +0000 (-0700) Subject: Close issue #16077: fix code example in documentation of reduce() built-in (from... X-Git-Tag: v2.7.4rc1~525^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fab57ccd1307deb8c803149de7f5b0e9ea5726b5;p=thirdparty%2FPython%2Fcpython.git Close issue #16077: fix code example in documentation of reduce() built-in (from docs@). --- diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index a1f7534b43b4..25d09d1a8175 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