Home | Trees | Indices | Help |
|
---|
|
This Metaclass is meant to overwrite doc strings of methods like execute, stop_training, inverse with the ones defined in the corresponding private methods _execute, _stop_training, _inverse, etc... This makes it possible for subclasses of Node to document the usage of public methods, without the need to overwrite the ancestor's methods.
|
|||
Inherited from Inherited from |
|
|||
a new object with type S, a subtype of T |
|
||
|
|||
|
|||
|
|
|||
DOC_METHODS =
|
|
|||
Inherited from Inherited from |
|
|
Returns an info dictionary containing: - name (the name of the function : str) - argnames (the names of the arguments : list) - defaults (the values of the default arguments : tuple) - signature (the signature : str) - doc (the docstring : str) - module (the module name : str) - dict (the function __dict__ : str) >>> def f(self, x=1, y=2, *args, **kw): pass >>> info = getinfo(f) >>> info["name"] 'f' >>> info["argnames"] ['self', 'x', 'y', 'args', 'kw'] >>> info["defaults"] (1, 2) >>> info["signature"] 'self, x, y, *args, **kw' |
Return a wrapped version of func. original_func -- The function to be wrapped. wrapper_infodict -- The infodict to be used for constructing the wrapper. |
Return a wrapped version of func. wrapper_infodict -- The infodict to be used for constructing the wrapper. cls -- Class to which the wrapper method will be added, this is used for the super call. |
|
DOC_METHODS
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Oct 9 06:08:49 2009 | http://epydoc.sourceforge.net |