You are here : python_3Built-in Functionssuper

super() - Built-in Functions

Return a proxy object that delegates method calls to a parent or sibling
class of type.  This is useful for accessing inherited methods that have
been overridden in a class. The search order is same as that used by
getattr() except that the type itself is skipped.


Syntax

super([type[, object-or-type]])


Example

class C(B):
    def method(self, arg):
        super().method(arg)    # This does the same thing as:
                               # super(C, self).method(arg)


Output / Return Value


Limitations


Alternatives / See Also


Reference