[pypy-svn] r38071 - pypy/branch/jit-virtual-world/pypy/jit/goal/demo
pedronis at codespeak.net
pedronis at codespeak.net
Wed Feb 7 16:24:15 CET 2007
Author: pedronis
Date: Wed Feb 7 16:24:13 2007
New Revision: 38071
Modified:
pypy/branch/jit-virtual-world/pypy/jit/goal/demo/f1.py
Log:
make this goal work on a python without pypyjit too.
Modified: pypy/branch/jit-virtual-world/pypy/jit/goal/demo/f1.py
==============================================================================
--- pypy/branch/jit-virtual-world/pypy/jit/goal/demo/f1.py (original)
+++ pypy/branch/jit-virtual-world/pypy/jit/goal/demo/f1.py Wed Feb 7 16:24:13 2007
@@ -16,8 +16,12 @@
return x
-import pypyjit
-pypyjit.enable(f1.func_code)
+try:
+ import pypyjit
+except ImportError:
+ print "No jit"
+else:
+ pypyjit.enable(f1.func_code)
res = f1(2117)
print res
More information about the Pypy-commit
mailing list