[pypy-svn] r73396 - pypy/branch/decouple-host-opcodes/pypy/interpreter

antoine at codespeak.net antoine at codespeak.net
Mon Apr 5 02:39:59 CEST 2010


Author: antoine
Date: Mon Apr  5 02:39:58 2010
New Revision: 73396

Modified:
   pypy/branch/decouple-host-opcodes/pypy/interpreter/baseobjspace.py
Log:
Seems to help translation



Modified: pypy/branch/decouple-host-opcodes/pypy/interpreter/baseobjspace.py
==============================================================================
--- pypy/branch/decouple-host-opcodes/pypy/interpreter/baseobjspace.py	(original)
+++ pypy/branch/decouple-host-opcodes/pypy/interpreter/baseobjspace.py	Mon Apr  5 02:39:58 2010
@@ -594,6 +594,8 @@
 
     def createframe(self, code, w_globals, closure=None):
         "Create an empty PyFrame suitable for this code object."
+        from pypy.interpreter.pycode import PyCode
+        assert isinstance(code, PyCode)
         magic = code.magic
         if magic == self.host_magic:
             return self.HostFrameClass(self, code, w_globals, closure)



More information about the Pypy-commit mailing list