[pypy-svn] r7292 - pypy/trunk/src/goal
mwh at codespeak.net
mwh at codespeak.net
Tue Nov 16 17:28:23 CET 2004
Author: mwh
Date: Tue Nov 16 17:28:22 2004
New Revision: 7292
Modified:
pypy/trunk/src/goal/translate_pypy.py
Log:
make space a module-level global -- that way it gets found by the
translator...
Modified: pypy/trunk/src/goal/translate_pypy.py
==============================================================================
--- pypy/trunk/src/goal/translate_pypy.py (original)
+++ pypy/trunk/src/goal/translate_pypy.py Tue Nov 16 17:28:22 2004
@@ -11,7 +11,7 @@
# __________ Entry point __________
-def entry_point(space):
+def entry_point():
w_a = W_IntObject(space, -6)
w_b = W_IntObject(space, -7)
return space.mul(w_a, w_b)
@@ -20,11 +20,11 @@
# __________ Main __________
def analyse(entry_point=entry_point):
- global t
- t = Translator(entry_point, verbose=True, simplifying=True)
+ global t, space
space = StdObjSpace()
buildcache.buildcache(space)
- a = t.annotate([annmodel.immutablevalue(space)])
+ t = Translator(entry_point, verbose=True, simplifying=True)
+ a = t.annotate([])
a.simplify()
More information about the Pypy-commit
mailing list