[pypy-svn] r62843 - pypy/branch/pyjitpl5/pypy/jit/tl
fijal at codespeak.net
fijal at codespeak.net
Wed Mar 11 11:42:04 CET 2009
Author: fijal
Date: Wed Mar 11 11:42:03 2009
New Revision: 62843
Modified:
pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py
Log:
a version that explodes on top of x86 backend
Modified: pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py Wed Mar 11 11:42:03 2009
@@ -17,15 +17,14 @@
print i
assert i == 102
-def f():
+def f2():
print "range object, but outside the loop"
s = 0
- for i in range(100):
- # XXX implement inplace_add method for ints
+ for i in range(1000000):
s = s + i
print s
- assert s == 4950
+ assert s == 499999500000L
def f():
try:
@@ -39,4 +38,4 @@
else:
raise AssertionError
-f()
+f2()
More information about the Pypy-commit
mailing list