You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
programming-basics-2022/08_python/mro/completely_f_cked.py

21 lines
249 B

class Base:
def __init__(self, a):
self.x = a
class A(Base):
def __init__(self):
super().__init__(5)
class B(Base):
def __init__(self, x):
super().__init__(x)
class C(A, B):
...
class D(B, A):
...