[pypy-svn] r62586 - pypy/branch/pyjitpl5/pypy/jit/tl

fijal at codespeak.net fijal at codespeak.net
Thu Mar 5 15:53:45 CET 2009


Author: fijal
Date: Thu Mar  5 15:53:44 2009
New Revision: 62586

Modified:
   pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py
Log:
example of bridge. working so far


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	Thu Mar  5 15:53:44 2009
@@ -5,7 +5,10 @@
     i = 0
     while i < 100:
         # XXX implement inplace_add method for ints
-        i += 3
+        if i % 2:
+            i = i + 3
+        else:
+            i = i + 1
     print i        # should print 102
 
 f()



More information about the Pypy-commit mailing list