[Python-checkins] python/dist/src/Doc/lib libfuncs.tex,1.149,1.150
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Mon Oct 13 13:52:37 EDT 2003
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv28045
Modified Files:
libfuncs.tex
Log Message:
SF bug #821701: reduce docs neglect a very important piece of information.
Add a note showing which argument is the accumulator.
Index: libfuncs.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libfuncs.tex,v
retrieving revision 1.149
retrieving revision 1.150
diff -C2 -d -r1.149 -r1.150
*** libfuncs.tex 22 Sep 2003 15:00:54 -0000 1.149
--- libfuncs.tex 13 Oct 2003 17:52:35 -0000 1.150
***************
*** 817,821 ****
\var{sequence}, from left to right, so as to reduce the sequence to
a single value. For example, \code{reduce(lambda x, y: x+y, [1, 2,
! 3, 4, 5])} calculates \code{((((1+2)+3)+4)+5)}. If the optional
\var{initializer} is present, it is placed before the items of the
sequence in the calculation, and serves as a default when the
--- 817,823 ----
\var{sequence}, from left to right, so as to reduce the sequence to
a single value. For example, \code{reduce(lambda x, y: x+y, [1, 2,
! 3, 4, 5])} calculates \code{((((1+2)+3)+4)+5)}. The left argument,
! \var{x}, is the accumulated value and the right argument, \var{y},
! is the update value from the \var{sequence}. If the optional
\var{initializer} is present, it is placed before the items of the
sequence in the calculation, and serves as a default when the
More information about the Python-checkins
mailing list