Class super
object --+
|
super
super(type) -> unbound super object
super(type, obj) -> bound super object; requires isinstance(obj, type)
super(type, type2) -> bound super object; requires issubclass(type2, type)
Typical use to call a cooperative superclass method:
class C(B):
def meth(self, arg):
super(C, self).meth(arg)
|
__self__
the instance invoking super(); may be None
|
|
__self_class__
the type of the instance invoking super(); may be None
|
|
__thisclass__
the class invoking super()
|
Inherited from object :
__class__
|
x.__getattribute__('name') <==> x.name
- Overrides:
object.__getattribute__
|
__init__(type)
(Constructor)
|
|
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
- Returns:
unbound super object
- Overrides:
object.__init__
|
- Returns: a new object with type S, a subtype of T
- Overrides:
object.__new__
|
__repr__(x)
(Representation operator)
|
|
repr(x)
- Overrides:
object.__repr__
|