[Python-checkins] python/nondist/peps pep-0340.txt,1.18,1.19

gvanrossum@users.sourceforge.net gvanrossum at users.sourceforge.net
Tue May 3 20:31:37 CEST 2005


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13580

Modified Files:
	pep-0340.txt 
Log Message:
Clarify that the block-statement is a loop to the parser, and don't
use literally translated Dutch.


Index: pep-0340.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0340.txt,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- pep-0340.txt	3 May 2005 17:21:13 -0000	1.18
+++ pep-0340.txt	3 May 2005 18:31:34 -0000	1.19
@@ -185,9 +185,11 @@
     Note that the 'as' keyword is not contentious (it will finally be
     elevated to proper keyword status).
 
-    Note that it is left in the middle whether a block-statement
-    represents a loop or not; this is up to the iterator, but in the
-    most common case BLOCK1 is executed exactly once.
+    Note that it is up to the iterator to decide whether a
+    block-statement represents a loop with multiple iterations; in the
+    most common use case BLOCK1 is executed exactly once.  To the
+    parser, however, it is always a loop; break and continue return
+    transfer to the block's iterator (see below for details).
 
     The translation is subtly different from the translation of a
     for-loop: iter() is not called, so EXPR1 should already be an



More information about the Python-checkins mailing list