type 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.
|
|
|
__providedBy__(...)
Object Specification Descriptor |
source code
|
|
|
__provides__(...)
Special descriptor for class ``__provides__`` |
|
|
__init__(self,
*args,
**kwargs)
(Constructor)
| source code
|
- Overrides:
object.__init__
- (inherited documentation)
|
Special descriptor for class ``__provides__``
The descriptor caches the implementedBy info, so that
we can get declarations for objects without instance-specific
interfaces a bit quicker.
|
__implemented__
- Value:
<implementedBy flumotion.common.common.InitMixin>
|
|