[Python-checkins] r50483 - peps/trunk/pep-3103.txt

guido.van.rossum python-checkins at python.org
Fri Jul 7 22:16:43 CEST 2006


Author: guido.van.rossum
Date: Fri Jul  7 22:16:41 2006
New Revision: 50483

Modified:
   peps/trunk/pep-3103.txt
Log:
Switch my preference to syntax alternative 1.


Modified: peps/trunk/pep-3103.txt
==============================================================================
--- peps/trunk/pep-3103.txt	(original)
+++ peps/trunk/pep-3103.txt	Fri Jul  7 22:16:41 2006
@@ -65,7 +65,7 @@
 275 here.  There are lots of other possibilities, but I don't see that
 they add anything.
 
-My current preference is alternative 2.
+I've recently been converted to alternative 1.
 
 I should note that all alternatives here have the "implicit break"
 property: at the end of the suite for a particular case, the control
@@ -95,7 +95,8 @@
             SUITE
 
 The main downside is that the suites where all the action is are
-indented two levels deep.
+indented two levels deep; this can be remedied by indenting the cases
+"half a level" (e.g. 2 spaces if the general indentation level is 4).
 
 Alternative 2
 -------------
@@ -112,6 +113,11 @@
     else:
         SUITE
 
+Some reasons not to choose this include expected difficulties for
+auto-indenting editors, folding editors, and the like; and confused
+users.  There are no situations currently in Python where a line
+ending in a colon is followed by an unindented line.
+
 Alternative 3
 -------------
 


More information about the Python-checkins mailing list