Package flumotion :: Package common :: Module common :: Class InitMixin
[hide private]

Class InitMixin

source code

object --+
         |
        InitMixin
Known Subclasses:

A mixin class to help with object initialization.

In some class hierarchies, __init__ is only used for initializing instance variables. In these cases it is advantageous to avoid the need to "chain up" to a parent implementation of a method. Adding this class to your hierarchy will, for each class in the object's class hierarchy, call the class's init() implementation on the object.

Note that the function is called init() without underscrores, and that there is no need to chain up to superclasses' implementations.

Uses call_each_method_reversed() internally.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)