Decorate with parameter
examples/decorators/fibotron_param.py
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))
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