Trees | Indices | Help |
---|
|
This module can be used to generate python source code. It has an interface similar to the "new" module.
|
|||
SourceGen SourceGen(outfile, [bangline]) An instance of this SourceGen class is a factory for generating python source code, by writing to a file object. |
|||
FunctionHolder | |||
MethodHolder | |||
ClassHolder | |||
SourceFile |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
BANGLINE =
|
|
genClass(name, parents, [attribs, [doc, [methods]]]) Return a string of Python source code defineing a class object. Where: name = class name (string) parents = tuple of parent class objects or strings. attribs = class-global attributes to define, contained in a dictionary. doc = a doc string (optional) methods = list of methods strings. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Sep 15 09:26:23 2008 | http://epydoc.sourceforge.net |