How to use a class variable as class methods's decorator parameter?
class Test:
def __init__(self, value):
self.value = value
@decorator(self.value) # <-- problem here ;)
def method():
pass
Of course self.value is out of scope to be used as decorator parameter. How could I refactor this to allow it?
Thanks!