■
http://d.hatena.ne.jp/methane/20081204/1228416796
あと、多重継承できる言語で親クラスを指定せずに親クラスの初期化ができる言語があったらぜひ見せてくれ。
うーん…↓このぐらいに書けないものかな…
class Base: def __init__(self): super().__init__() print ('Base') class A(Base): def __init__(self): super().__init__() print ('A') class B(Base): def __init__(self): super().__init__() print ('B') class C(B,A): def __init__(self): super().__init__() print ('C') b = C()
Base A B C