It is not clear exactly how your objects interact, but here is a minimal example of one option:
def Power():
def use(self, person):
# do whatever
def Person():
def __init__(self, power):
self.power = power
def use_power(self):
self.power.use(self)
This provides an interface to the Power
in Person
, and passes the Person
explicitly to the Power
when it is use
d.