[pypy-commit] pypy py3k-qualname: A branch to implement the __qualname__ attribute

rlamy noreply at buildbot.pypy.org
Sun Jul 27 12:24:19 CEST 2014


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3k-qualname
Changeset: r72558:0bbca39a93bb
Date: 2014-07-27 12:18 +0200
http://bitbucket.org/pypy/pypy/changeset/0bbca39a93bb/

Log:	A branch to implement the __qualname__ attribute

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -128,13 +128,7 @@
         block = self.unrollstack(SApplicationException.kind)
         if block is None:
             # no handler found for the OperationError
-            if we_are_translated():
-                raise operr
-            else:
-                # try to preserve the CPython-level traceback
-                import sys
-                tb = sys.exc_info()[2]
-                raise OperationError, operr, tb
+            raise operr
         else:
             unroller = SApplicationException(operr)
             next_instr = block.handle(self, unroller)


More information about the pypy-commit mailing list