Last active
July 16, 2020 02:51
-
-
Save thanakijwanavit/d6bf5d5de9a52f3a1b287722c4f7f138 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class B: | |
| def random_func(self, i, j, test=None): | |
| print(2) | |
| class A: | |
| def random_func(self, i, j, test=None): | |
| print(1) | |
| class ModA(A): | |
| def random_funcA(self, i, j, test=None): | |
| super().random_func(i, j, test=test) | |
| class ModB(B): | |
| def random_funcB(self, i, j, test=None): | |
| super().random_func(i, j, test=test) | |
| class MiddleClass(ModA,ModB): | |
| pass | |
| m = MiddleClass() | |
| m.random_funcA(1, 3, test="hello") | |
| m.random_funcB(1, 3, test= 'hello') |
Author
thanakijwanavit
commented
Jul 16, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment