Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
 def createexecutioncontext(self):
     ec = ObjSpace.createexecutioncontext(self)
     ec._py_repr = None
     return ec
Пример #6
0
 def createexecutioncontext(self):
     ec = ObjSpace.createexecutioncontext(self)
     ec._py_repr = None
     return ec