]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- After an exception, run.py was not setting the exception vector. Noam
authorKurt B. Kaiser <kbk@shore.net>
Wed, 19 Nov 2003 04:52:32 +0000 (04:52 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Wed, 19 Nov 2003 04:52:32 +0000 (04:52 +0000)
  Raphael suggested correcting this so pdb's postmortem pm() would work.
  IDLEfork Patch 844675

Modified: NEWS.txt  run.py

Lib/idlelib/NEWS.txt
Lib/idlelib/run.py

index 07291c3b8bcdab6dd50443be17039794ba2684c1..c6df2c30dae90982f31626b52d49125bb79f2b7f 100644 (file)
@@ -3,6 +3,10 @@ What's New in IDLE 1.0+?
 
 *Release date: XX-XXX-2003*
 
+- After an exception, run.py was not setting the exception vector. Noam
+  Raphael suggested correcting this so pdb's postmortem pm() would work. 
+  IDLEfork Patch 844675
+
 - IDLE didn't start correctly when Python was installed in "Program Files" on
   W2K and XP.  Python Bugs 780451, 784183
 
index 4e6345c8d69c263999d59ae9006d0bc3d2d5995b..d1fe08f3e880e6cf1ade426a43a9f2c1535447ce 100644 (file)
@@ -111,7 +111,8 @@ def manage_socket(address):
 def print_exception():
     flush_stdout()
     efile = sys.stderr
-    typ, val, tb = sys.exc_info()
+    typ, val, tb = excinfo = sys.exc_info()
+    sys.last_type, sys.last_value, sys.last_traceback = excinfo
     tbe = traceback.extract_tb(tb)
     print >>efile, '\nTraceback (most recent call last):'
     exclude = ("run.py", "rpc.py", "threading.py", "Queue.py",