Author: Ronan Lamy <[email protected]>
Branch: translation-cleanup
Changeset: r57627:a8f8be77346d
Date: 2012-09-27 00:54 +0100
http://bitbucket.org/pypy/pypy/changeset/a8f8be77346d/
Log: Copy ObjSpace.__init__ into FlowObjSpace
* disable things that don't make sense in flow space
diff --git a/pypy/objspace/flow/objspace.py b/pypy/objspace/flow/objspace.py
--- a/pypy/objspace/flow/objspace.py
+++ b/pypy/objspace/flow/objspace.py
@@ -46,6 +46,33 @@
"""
FrameClass = FlowSpaceFrame
+ def __init__(self, config=None):
+ "NOT_RPYTHON: Basic initialization of objects."
+ self.fromcache = None
+ self.threadlocals = None
+ # set recursion limit
+ # sets all the internal descriptors
+ if config is None:
+ from pypy.config.pypyoption import get_pypy_config
+ config = get_pypy_config(translating=False)
+ self.config = config
+
+ self.builtin_modules = {}
+ self.reloading_modules = {}
+
+ # import extra modules for side-effects
+ import pypy.interpreter.nestedscope # register *_DEREF bytecodes
+
+ self.interned_strings = {}
+ self.actionflag = None
+ self.check_signal_action = None
+ self.user_del_action = None
+ self.frame_trace_action = None
+ self._code_of_sys_exc_info = None
+
+ self.timer = None
+
+ self.initialize()
def initialize(self):
self.w_None = Constant(None)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit