class A:
def __init__(self):
print("world")
class B(A):
def __init__(self):
print("hello")
B() # output: hello
The super function Object() is invoked implicitly in every other language I've worked with. In Python, what does one call it? I expected super(self), but it doesn't work. I read an article on scaler topics that said I needed to use the slightly more verbose version super(containing classname>, self), which is equivalent to super() according to the documentation. Is that right?