[Python-checkins] python/nondist/peps pep-0308.txt,1.3,1.4

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
Fri, 07 Feb 2003 14:29:41 -0800


Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1:/tmp/cvs-serv4190

Modified Files:
	pep-0308.txt 
Log Message:
Explain that "e if C" (without the "else" part) is a bad idea.


Index: pep-0308.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0308.txt,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** pep-0308.txt	7 Feb 2003 22:13:53 -0000	1.3
--- pep-0308.txt	7 Feb 2003 22:29:39 -0000	1.4
***************
*** 111,114 ****
--- 111,126 ----
      evaluation.
  
+ 
+ Variations
+ 
+     It has been proposed to make the 'else' part optional.  This would
+     be a really bad idea.  I showed:
+ 
+         x = e if C
+ 
+     to several people and they all thought that if C was false, it
+     would leave x unchanged.  So don't even think about this one!
+ 
+ 
  Copyright