[pypy-svn] rev 599 - pypy/trunk/src/pypy/interpreter

mwh at codespeak.net mwh at codespeak.net
Tue May 27 18:12:51 CEST 2003


Author: mwh
Date: Tue May 27 18:12:51 2003
New Revision: 599

Modified:
   pypy/trunk/src/pypy/interpreter/interactive.py
Log:
I thought tismer had fixed this module up.
Anyway, this seems to work, ish.


Modified: pypy/trunk/src/pypy/interpreter/interactive.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/interactive.py	(original)
+++ pypy/trunk/src/pypy/interpreter/interactive.py	Tue May 27 18:12:51 2003
@@ -31,7 +31,10 @@
         code.InteractiveConsole.interact(self, banner)
 
     def runcode(self, code):
-        frame = pyframe.PyFrame(self.space, code,
+        from pypy.interpreter import pycode
+        r = pycode.PyByteCode()
+        r._from_code(code)
+        frame = pyframe.PyFrame(self.space, r,
                                 self.w_globals, self.w_globals)
         try:
             self.ec.eval_frame(frame)


More information about the Pypy-commit mailing list