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)