# What if method call ordering needs differ from the MRO?⏎ ⏎ >>> class B:⏎ def __init__(self): print('B.__init__'); super().__init__()⏎ >>> class C:⏎ def __init__(self): print('C.__init__'); super().__init__()⏎ >>> class D(B, C):⏎ def __init__(self): print('D.__init__'); C.__init__(self); B.__init__(self)⏎ >>> X = D()⏎ D.__init__⏎ C.__init__⏎ B.__init__⏎ C.__init__ # It's the MRO xor explicit calls...🏁
# | Player | Time | Duration | Accuracy | WPM | pp | |
---|---|---|---|---|---|---|---|
1 | |||||||
2 | |||||||
3 | |||||||
4 | |||||||
5 | |||||||
6 | |||||||
7 | |||||||
8 | |||||||
9 | |||||||
10 |
# What if method call ordering needs differ from the MRO?⏎ ⏎ >>> class B:⏎ def __init__(self): print('B.__init__'); super().__init__()⏎ >>> class C:⏎ def __init__(self): print('C.__init__'); super().__init__()⏎ >>> class D(B, C):⏎ def __init__(self): print('D.__init__'); C.__init__(self); B.__init__(self)⏎ >>> X = D()⏎ D.__init__⏎ C.__init__⏎ B.__init__⏎ C.__init__ # It's the MRO xor explicit calls...🏁