1 from B import C, g 2 3 class D(C): 4 d = 3 5 def m(self): 6 return self.d 7 8 def f(x): 9 return x.m() 10 11 def h(x): 12 return g(x)