If I create a python decorator function like this
def retry_until_true(tries, delay=60): \"\"\" Decorator to rety a function or method until it retur
Sure you can, just nest your function definition in another function, for example:
def explicit_setup_func(tries, delay=60): @retry_until_true(tries, delay) def check_something_function(x, y): # Code
However, the class decorator solution is more practical.