1. Pypy
  2. Untitled project
  3. pypy


pypy / demo / fibonacci.py

The branch 'array_equal' does not exist.
Diff from to

File demo/fibonacci.py

 Thunk (a.k.a. lazy objects) in PyPy.
 To run on top of the thunk object space with the following command-line:
-    py.py -o thunk thunk-demo.py
+    py.py -o thunk fibonacci.py
 This is a typical Functional Programming Languages demo, computing the
 Fibonacci sequence by using an infinite lazy linked list.
-    thunk    # only available in 'py.py -o thunk'
-except NameError:
+    from __pypy__ import thunk    # only available in 'py.py -o thunk'
+except ImportError:
     print __doc__
     raise SystemExit(2)