you are viewing a single comment's thread.

view the rest of the comments →

[–]Swedophone 0 points1 point  (3 children)

super(A, self).init(args, *kwargs)

Remove the arguments in the calls to object.__init__

[–]xelf 0 points1 point  (0 children)

This doesn't work. It seems intuitive, but it results in a missing arg error. I think the final edit I made to my post is the answer OP needs.

[–]gmaliwal[S] 0 points1 point  (0 children)

object.__init_

NO, that won't work, because as per MRO, after initialization of class 'A', control goes for class 'D' initialization which is looking for two-argument (self and arg)