[pypy-svn] r49280 - pypy/dist/pypy/interpreter
arigo at codespeak.net
arigo at codespeak.net
Sun Dec 2 15:51:34 CET 2007
Author: arigo
Date: Sun Dec 2 15:51:34 2007
New Revision: 49280
Modified:
pypy/dist/pypy/interpreter/executioncontext.py
Log:
ExecutionContext instances should not be seen during translation, but
they occasionally do (there is a hard-to-reproduce order dependency).
This change might help us locate where they come from.
Modified: pypy/dist/pypy/interpreter/executioncontext.py
==============================================================================
--- pypy/dist/pypy/interpreter/executioncontext.py (original)
+++ pypy/dist/pypy/interpreter/executioncontext.py Sun Dec 2 15:51:34 2007
@@ -258,3 +258,8 @@
def add_pending_action(self, action):
self.pending_actions.append(action)
self.ticker = 0
+
+ def _freeze_(self):
+ raise Exception("ExecutionContext instances should not be seen during"
+ " translation. Now is a good time to inspect the"
+ " traceback and see where this one comes from :-)")
More information about the Pypy-commit
mailing list