[pypy-svn] r67434 - pypy/branch/spine-of-frames/pypy/interpreter

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Sep 2 17:57:55 CEST 2009


Author: cfbolz
Date: Wed Sep  2 17:57:54 2009
New Revision: 67434

Modified:
   pypy/branch/spine-of-frames/pypy/interpreter/pyframe.py
Log:
some more text describing what happens


Modified: pypy/branch/spine-of-frames/pypy/interpreter/pyframe.py
==============================================================================
--- pypy/branch/spine-of-frames/pypy/interpreter/pyframe.py	(original)
+++ pypy/branch/spine-of-frames/pypy/interpreter/pyframe.py	Wed Sep  2 17:57:54 2009
@@ -65,6 +65,18 @@
     +---------------+
     | real_frame    |
     +---------------+
+       |
+       |
+       v
+      ...
+    
+    This ensures that the virtual frames don't escape via the f_back of the
+    real frames. For the same reason, the executioncontext's some_frame
+    attribute should only point to real frames.
+
+    All places where a frame can become accessed from applevel-code (like
+    sys._getframe and traceback catching) need to call force_f_back to ensure
+    that the intermediate virtual frames are forced to be real ones.
 
     """ 
 



More information about the Pypy-commit mailing list