#!/usr/local/bin/python3 class A(object): def __init__(self): self.a = 1 class B(A): def __init__(self): self._a = 0 super().__init__() @property def a(self): return self._a def r(self): self.a = 2 B()