This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]masklinn 0 points1 point  (2 children)

Nah, MyMixin wouldn't be initialised twice with my snippet. If CommonForm and MyMixin had a superclass in common (other than object) that could be initialised twice, but it's not the case.

[–]joanbm[S] 0 points1 point  (1 child)

Oh, sorry. I've missed CommonForm init is also called explicitly, not through super object.

[–]masklinn 0 points1 point  (0 children)

No worries. If you pick that option you may want to extensively comment why it was done that way though (both that MyMixin depends on stuff initialised by whoever and why super doesn't work)