[pypy-svn] r37356 - pypy/dist/pypy/translator/tool

arigo at codespeak.net arigo at codespeak.net
Thu Jan 25 22:13:02 CET 2007


Author: arigo
Date: Thu Jan 25 22:13:01 2007
New Revision: 37356

Modified:
   pypy/dist/pypy/translator/tool/pdbplus.py
Log:
Don't hide the inner function name.


Modified: pypy/dist/pypy/translator/tool/pdbplus.py
==============================================================================
--- pypy/dist/pypy/translator/tool/pdbplus.py	(original)
+++ pypy/dist/pypy/translator/tool/pdbplus.py	Thu Jan 25 22:13:01 2007
@@ -473,6 +473,7 @@
 
 def pdbcatch(f):
     "A decorator that throws you in a pdbplus if the given function raises."
+    from pypy.tool.sourcetools import func_with_new_name
     def wrapper(*args, **kwds):
         try:
             return f(*args, **kwds)
@@ -480,4 +481,5 @@
             import sys
             PdbPlusShow(None).post_mortem(sys.exc_info()[2])
             raise
+    wrapper = func_with_new_name(wrapper, f.__name__)
     return wrapper



More information about the Pypy-commit mailing list