Home | Trees | Indices | Help |
|
---|
|
Base class for extensions nodes. A new extension node class should override the _extension_name. The concrete node implementations are then derived from this extension node class. Important note: To call a method from a parent class you have two options. - use super, but with the normal node class, e.g.: super(mdp.nodes.SFA2Node, self).method() Here SFA2Node was given instead of the extension node class for the SFA2Node. If the extensions node class is used directly (without the extension mechanism) this may lead to problems. In this case you have to be careful about the inheritance order and the effect on the MRO. - call it explicitly using the im_func attribute: parent_class.method.im_func(self) - To call the original method in the same class use the 'ext_original_method' attribute of the injected method.
|
|||
__metaclass__ This is the metaclass for node extension superclasses. |
|
|||
Inherited from |
|
|||
extension_name = None
|
|
|||
Inherited from |
|
extension_name
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Oct 9 06:08:47 2009 | http://epydoc.sourceforge.net |