We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

super

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

Returns the superclass of type. If the second argument is omitted the super object returned is unbound. If the second argument is an object, isinstance(obj, type) must be true. If the second argument is a type, issubclass(type2, type) must be true. super only works for new-style classes.

A typical use for calling a cooperative superclass method is:

class C(B):
    def meth(self, arg):
        super(C, self).meth(arg)

Note that super is implemented as part of the binding process for explicit dotted attribute lookups such as “super(C, self).__getitem__(name)”. Accordingly, super is undefined for implicit lookups using statements or operators such as “super(C, self)[name]”. New in version 2.2.