[Solved] In python? why do the subclass inherit from parent? when you use the init of method to assign the parent?but it does not work [duplicate]

In python? why do the subclass inherit from parent? when you use the init of method to assign the parent?but it does not work [duplicate] solved In python? why do the subclass inherit from parent? when you use the init of method to assign the parent?but it does not work [duplicate]

[Solved] Class constructor able to init with an instance of the same class object

Not sure what you’re trying to achieve, but technically your error is here: self = kwargs.get(‘object’,self) There’s nothing magic with self, it’s just a function argument, and as such a local variable, so rebinding it within the function will only make the local name self points to another object within the function’s scope. It’s in … Read more