Access to an "upper" instance of a class from another instance of a different class
- by BorrajaX
Hello everyone!
I have a tricky question and probably what I want to do is not even possible but... who knows... Python seems very flexible and powerful...
I'd like to know if there's a way to access to the class (or its fields) where an object is instanciated. Let's say I have:
def Class1:
def __init__(self):
self.title =…