Author: Antonio Cuni <[email protected]>
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
# ____________________________________________________________
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit