[pypy-svn] rev 450 - pypy/trunk/src/pypy/interpreter
tismer at codespeak.net
tismer at codespeak.net
Mon May 26 16:18:57 CEST 2003
Author: tismer
Date: Mon May 26 16:18:57 2003
New Revision: 450
Modified:
pypy/trunk/src/pypy/interpreter/extmodule.py
pypy/trunk/src/pypy/interpreter/main.py
Log:
main uses compile from space.builtin now
Modified: pypy/trunk/src/pypy/interpreter/extmodule.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/extmodule.py (original)
+++ pypy/trunk/src/pypy/interpreter/extmodule.py Mon May 26 16:18:57 2003
@@ -1,4 +1,4 @@
-
+from pycode import PyBaseCode
class appmethod(object):
def __init__(self, func):
Modified: pypy/trunk/src/pypy/interpreter/main.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/main.py (original)
+++ pypy/trunk/src/pypy/interpreter/main.py Mon May 26 16:18:57 2003
@@ -1,14 +1,15 @@
from pypy.objspace.std import StdObjSpace
from pypy.objspace.trivial import TrivialObjSpace
import executioncontext, baseobjspace, pyframe
-from pypy.module.builtin import compile
import sys
def run_string(source, fname):
try:
space = StdObjSpace()
- code = compile(source, fname, 'exec')
+ compile = space.builtin.compile
+ w=space.wrap
+ code = compile(w(source), w(fname), w('exec'))
ec = executioncontext.ExecutionContext(space)
w_mainmodule = space.newmodule(space.wrap("__main__"))
More information about the Pypy-commit
mailing list