You're calling super(Base)
which means the parent of Base
class who is object
class, so you're not calling the Base.__init__
method, which means no re-assignment of fname
which stays to kohli
What you want is parent of Child
class, with current instance self
super(Child, self).__init__()
But in fact you can just do the following, that's the same
super().__init__()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…