[pypy-svn] r24241 - pypy/dist/pypy/interpreter

tismer at codespeak.net tismer at codespeak.net
Sat Mar 11 07:36:00 CET 2006


Author: tismer
Date: Sat Mar 11 07:35:43 2006
New Revision: 24241

Modified:
   pypy/dist/pypy/interpreter/executioncontext.py
Log:
please comment about the frame stack consideration.
starting coroutine support. Some kind of subcontexts is needed, but it is not clear what fits us best.

Modified: pypy/dist/pypy/interpreter/executioncontext.py
==============================================================================
--- pypy/dist/pypy/interpreter/executioncontext.py	(original)
+++ pypy/dist/pypy/interpreter/executioncontext.py	Sat Mar 11 07:35:43 2006
@@ -15,6 +15,13 @@
         self.ticker = 0
         self.compiler = space.createcompiler()
 
+    # XXX
+    # I think that it is wrong to hide frames here. The stack should
+    # contain all the frames, because we need them for pickling.
+    # better to do the hiding when the stack is accessed. This implies that
+    # we have an explicit frame depth counter.
+    # please comment/correct me! (chris)
+    
     def enter(self, frame):
         if self.framestack.depth() > self.space.sys.recursionlimit:
             raise OperationError(self.space.w_RuntimeError,
@@ -34,6 +41,9 @@
         if not frame.hide():
             self.framestack.pop()
 
+    # coroutine support
+    # XXX still trying and thinking hard
+
     def get_builtin(self):
         try:
             return self.framestack.top().builtin



More information about the Pypy-commit mailing list