Minus equal operator doesnt call property setter python
Minus equal operator doesnt call property setter python Question: I have my code setup this way: class Test(): def __init__(self): self.offset = [0,0] @property def offset(self): return self._offset @offset.setter def offset(self,offset): print("set") self._offset = offset test = Test() test.offset[1] -= 1 but the setter is being called only once even though I am changing my …