Re: [Tutor] decorators in a class

2017-06-13 Thread Peter Otten
anish singh wrote: > Trying to use decorators in my class. I am calling > build_tree from the main function and i want to increment > the arguments by a constant factor by using decorators. > However as build_tree is a recursive function, I don't want > to call it recursively with increased

[Tutor] decorators in a class

2017-06-12 Thread anish singh
Trying to use decorators in my class. I am calling build_tree from the main function and i want to increment the arguments by a constant factor by using decorators. However as build_tree is a recursive function, I don't want to call it recursively with increased constant factor always. Probably