[Python-checkins] r45684 - peps/trunk/pep-0343.txt

nick.coghlan python-checkins at python.org
Mon Apr 24 06:41:45 CEST 2006


Author: nick.coghlan
Date: Mon Apr 24 06:41:45 2006
New Revision: 45684

Modified:
   peps/trunk/pep-0343.txt
Log:
Correct a bug in the nested() example

Modified: peps/trunk/pep-0343.txt
==============================================================================
--- peps/trunk/pep-0343.txt	(original)
+++ peps/trunk/pep-0343.txt	Mon Apr 24 06:41:45 2006
@@ -956,7 +956,10 @@
                      else:
                          exc = (None, None, None)
                  if exc != (None, None, None):
-                     raise
+                     # sys.exc_info() may have been
+                     # changed by one of the exit methods
+                     # so provide explicit exception info
+                     raise exc[0], exc[1], exc[2]
 
          Sample usage:
 


More information about the Python-checkins mailing list