def createexecutioncontext(self): # add space specific fields to execution context # note that this method must not call space methods that might need an # execution context themselves (e.g. nearly all space methods) ec = ObjSpace.createexecutioncontext(self) ec._py_repr = None return ec
def createexecutioncontext(self): # add space specific fields to execution context ec = ObjSpace.createexecutioncontext(self) ec._py_repr = self.newdict() if self.config.objspace.std.withmethodcache: SIZE = 1 << self.config.objspace.std.methodcachesizeexp ec.method_cache_versions = [None] * SIZE ec.method_cache_names = [None] * SIZE ec.method_cache_lookup_where = [(None, None)] * SIZE if self.config.objspace.std.withmethodcachecounter: ec.method_cache_hits = {} ec.method_cache_misses = {} return ec
def createexecutioncontext(self): # add space specific fields to execution context # note that this method must not call space methods that might need an # execution context themselves (e.g. nearly all space methods) ec = ObjSpace.createexecutioncontext(self) ec._py_repr = None if self.config.objspace.std.withmethodcache: SIZE = 1 << self.config.objspace.std.methodcachesizeexp ec.method_cache_versions = [None] * SIZE ec.method_cache_names = [None] * SIZE ec.method_cache_lookup_where = [(None, None)] * SIZE if self.config.objspace.std.withmethodcachecounter: ec.method_cache_hits = {} ec.method_cache_misses = {} return ec
def createexecutioncontext(self): ec = ObjSpace.createexecutioncontext(self) ec._py_repr = None return ec