I have two classes. In the object oriented methodology, I can change parent attribute from low level class. In python, how can I change variable of the parents from other class ? What I have
class Concurrent( threading.Thread):
def __init__(self):
self.rec = Rec()
self.rec.start()
self.parentvar = None # I have change this variable
self.secondParentVar = [] # or use this
class Rec(Concurrent):
def run(self):
# from here, change variable of the parent Conccurent class variable