[pypy-commit] pypy py3k: after 145994f7f8f9 we pass the result of getattr(..., '__traceback__') to set_traceback(), which means that the annotator things it's a W_Root. Force the field to be annotated as PyTraceback

antocuni noreply at buildbot.pypy.org
Fri Mar 2 14:40:12 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53109:0f407c6962c0
Date: 2012-03-02 14:39 +0100
http://bitbucket.org/pypy/pypy/changeset/0f407c6962c0/

Log:	after 145994f7f8f9 we pass the result of getattr(...,
	'__traceback__') to set_traceback(), which means that the annotator
	things it's a W_Root. Force the field to be annotated as PyTraceback

diff --git a/pypy/interpreter/error.py b/pypy/interpreter/error.py
--- a/pypy/interpreter/error.py
+++ b/pypy/interpreter/error.py
@@ -283,6 +283,8 @@
         only if the exception really propagates out of this frame, by
         executioncontext.leave() being called with got_exception=True.
         """
+        from pypy.interpreter.pytraceback import PyTraceback
+        assert isinstance(traceback, PyTraceback)
         self._application_traceback = traceback
 
 # ____________________________________________________________


More information about the pypy-commit mailing list