Exemple #1
0
 def __init__(self, pycketconfig=None):
     from rpython.config.config import Config
     self.bindings = {}
     self.version = w_version
     self.module_env = ModuleEnv(self)
     self.commandline_arguments = []
     self.callgraph = CallGraph()
     self.globalconfig = w_global_config
     if pycketconfig is None:
         assert not objectmodel.we_are_translated()
         pycketconfig = get_testing_config()
     assert isinstance(pycketconfig, Config)
     self._pycketconfig = pycketconfig
Exemple #2
0
 def __init__(self):
     self.config = {
         'verbose': MIN_INT,
         'expander_loaded': 0,
         'repl_loaded': 0,
         'debug_active': 0,
         'boot_done': 0,
         'linklet_mode': 1
     }
     self.callgraph = CallGraph()
     self.error_exit = None
     self.verbose_keywords = []
     self.environment_vars = {}
     self.pycketconfig = None
Exemple #3
0
 def reset_callgraph(self):
     self.callgraph = CallGraph()