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

arigo at codespeak.net arigo at codespeak.net
Fri Mar 13 16:00:39 CET 2009


Author: arigo
Date: Fri Mar 13 16:00:36 2009
New Revision: 62936

Modified:
   pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_demo.py
Log:
Update the target, in particular by printing the OperationError.


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	Fri Mar 13 16:00:36 2009
@@ -53,10 +53,11 @@
     while i < 1000:
         t = t[1], t[2], t[0]
         i += 1
+    print t
 
 def f6():
     print     "Arbitrary test function."
-    n = 5
+    n = 21
     i = 0
     x = 1
     while i<n:
@@ -68,5 +69,16 @@
     print x
     return x
 
+def f7():
+    n = "hello"
+    i = 0
+    while i < 21:
+        i = i + 1
+    print n
+
 
-f5()
+try:
+    f7()
+except Exception, e:
+    print '/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\'
+    print e.__class__, e



More information about the Pypy-commit mailing list