How to invoke the super constructor in Python?
How to invoke the super constructor in Python? Question: class A: def __init__(self): print(“world”) class B(A): def __init__(self): print(“hello”) B() # output: hello In all other languages I’ve worked with the super constructor is invoked implicitly. How does one invoke it in Python? I would expect super(self) but this doesn’t work. Asked By: Mike || …