[pypy-svn] r62778 - pypy/trunk/pypy/jit/tl

fijal at codespeak.net fijal at codespeak.net
Mon Mar 9 19:23:59 CET 2009


Author: fijal
Date: Mon Mar  9 19:23:58 2009
New Revision: 62778

Modified:
   pypy/trunk/pypy/jit/tl/pypyjit_demo.py
Log:
yet another working function


Modified: pypy/trunk/pypy/jit/tl/pypyjit_demo.py
==============================================================================
--- pypy/trunk/pypy/jit/tl/pypyjit_demo.py	(original)
+++ pypy/trunk/pypy/jit/tl/pypyjit_demo.py	Mon Mar  9 19:23:58 2009
@@ -27,4 +27,16 @@
     print s
     assert s == 4950
 
+def f():
+    try:
+        i = 100
+        while i > 0:
+            if i == 10:
+                raise IndexError
+            i -= 1
+    except IndexError:
+        pass
+    else:
+        raise AssertionError
+
 f()



More information about the Pypy-commit mailing list