[pypy-svn] r5062 - pypy/trunk/src/pypy/interpreter

arigo at codespeak.net arigo at codespeak.net
Fri Jun 11 18:19:33 CEST 2004


Author: arigo
Date: Fri Jun 11 18:19:32 2004
New Revision: 5062

Modified:
   pypy/trunk/src/pypy/interpreter/py.py
Log:
Enabled 'pdb.pm()' after a PyPy crash.  py.py used to eat and display the
exception itself without making it available as sys.last_xxx.


Modified: pypy/trunk/src/pypy/interpreter/py.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/py.py	(original)
+++ pypy/trunk/src/pypy/interpreter/py.py	Fri Jun 11 18:19:32 2004
@@ -67,6 +67,9 @@
             issubclass(exc_type, SystemExit)):
             pass   # don't print tracebacks for SystemExit
         else:
+            sys.last_type = exc_type
+            sys.last_value = value
+            sys.last_traceback = tb
             sys.excepthook(exc_type, value, tb)
         tb_server.wait_until_interrupt()
             



More information about the Pypy-commit mailing list