[Python-checkins] python/nondist/peps pep-0340.txt,1.24,1.25
gvanrossum@users.sourceforge.net
gvanrossum at users.sourceforge.net
Fri May 6 16:38:11 CEST 2005
Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31239
Modified Files:
pep-0340.txt
Log Message:
There's no need to be fuzzy about the moreal equivalent of "raise
*exc".
Index: pep-0340.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0340.txt,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- pep-0340.txt 5 May 2005 15:39:19 -0000 1.24
+++ pep-0340.txt 6 May 2005 14:38:09 -0000 1.25
@@ -224,7 +224,7 @@
if ext is not None:
VAR1 = ext(*exc) # May re-raise *exc
else:
- raise *exc # Well, the moral equivalent :-)
+ raise exc[0], exc[1], exc[2]
else:
VAR1 = next(itr, arg) # May raise StopIteration
except StopIteration:
@@ -250,13 +250,13 @@
- "break" is always legal; it is translated into:
- exc = (StopIteration,)
+ exc = (StopIteration, None, None)
continue
- "return EXPR3" is only legal when the block-statement is
contained in a function definition; it is translated into:
- exc = (StopIteration,)
+ exc = (StopIteration, None, None)
ret = True
val = EXPR3
continue
More information about the Python-checkins
mailing list