examples/memoize/fibotron.py
from __future__ import print_function
import decor

@decor.tron
def fibo(n):
    if n in (1,2): return 1
    return fibo(n-1) + fibo(n-2)

print(fibo(5))
examples/memoize/fibotron.out
Calling fibo(5)
Calling fibo(4)
Calling fibo(3)
Calling fibo(2)
Calling fibo(1)
Calling fibo(2)
Calling fibo(3)
Calling fibo(2)
Calling fibo(1)
5