Ejemplo n.º 1
0
 def createframe(self, code, w_globals, outer_func=None):
     from pypy.objspace.std.fake import CPythonFakeCode, CPythonFakeFrame
     if not we_are_translated() and isinstance(code, CPythonFakeCode):
         return CPythonFakeFrame(self, code, w_globals)
     else:
         return ObjSpace.createframe(self, code, w_globals, outer_func)
Ejemplo n.º 2
0
 def createframe(self, code, w_globals, outer_func=None):
     from pypy.objspace.std.fake import CPythonFakeCode, CPythonFakeFrame
     if not we_are_translated() and isinstance(code, CPythonFakeCode):
         return CPythonFakeFrame(self, code, w_globals)
     else:
         return ObjSpace.createframe(self, code, w_globals, outer_func)