[Python-checkins] python/dist/src/Doc/ref ref7.tex, 1.35.16.3, 1.35.16.4

fdrake at users.sourceforge.net fdrake at users.sourceforge.net
Tue Nov 2 20:15:45 CET 2004


Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9694/ref

Modified Files:
      Tag: release23-maint
	ref7.tex 
Log Message:
clarify discussion of iteration in the section on the "for" statement
(SF bug #829073)


Index: ref7.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref7.tex,v
retrieving revision 1.35.16.3
retrieving revision 1.35.16.4
diff -u -d -r1.35.16.3 -r1.35.16.4
--- ref7.tex	2 Nov 2004 18:59:18 -0000	1.35.16.3
+++ ref7.tex	2 Nov 2004 19:15:42 -0000	1.35.16.4
@@ -134,8 +134,10 @@
   \productioncont{["else" ":" \token{suite}]}
 \end{productionlist}
 
-The expression list is evaluated once; it should yield a sequence.  The
-suite is then executed once for each item in the sequence, in the
+The expression list is evaluated once; it should yield an iterable
+object.  An iterator is created for the result of the
+{}\code{expression_list}.  The suite is then executed once for each
+item provided by the iterator, in the
 order of ascending indices.  Each item in turn is assigned to the
 target list using the standard rules for assignments, and then the
 suite is executed.  When the items are exhausted (which is immediately



More information about the Python-checkins mailing list