examples/memoize/fibotron_param.py
from __future__ import print_function
import decor_param

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

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