Home | Trees | Indices | Help |
|
---|
|
A metaclass which copies docstrings from private to public methods.
This metaclass is meant to overwrite doc-strings of methods like Node.execute, Node.stop_training, Node.inverse with the ones defined in the corresponding private methods Node._execute, Node._stop_training, Node._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:
>>> 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' >>> info["kwargs_name"] kw |
|
Select private methods that can overwrite the public docstring. Return a dictionary priv_infos[pubname], where the keys are the public name of the private method to be wrapped, and the values are dictionaries with the signature, doc, ... informations of the private methods (see _function_infodict). |
|
|
|
DOC_METHODS
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Mar 8 12:39:48 2016 | http://epydoc.sourceforge.net |