fork(1) download
  1. class C1():
  2. def c1_m(self):
  3. print("c1_m")
  4. def m(self):
  5. print("C1 m")
  6.  
  7. class C2():
  8. def c2_m(self):
  9. print("c2_m")
  10. def m(self):
  11. print("C2 m")
  12.  
  13. class C3(C2, C1):
  14. def m(self):
  15. print("C3 m")
  16.  
  17. c = C3()
  18. c.c1_m()
  19. c.c2_m()
  20. c.m()
  21. print(C3.__mro__)
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
c1_m
c2_m
C3 m
(<class '__main__.C3'>, <class '__main__.C2'>, <class '__main__.C1'>, <class 'object'>)