| Trees | Index | Help |
|---|
| Package Bio :: Package EUtils :: Module sourcegen |
|
| Classes | |
|---|---|
ClassHolder |
|
FunctionHolder |
|
MethodHolder |
|
SourceFile |
|
SourceGen |
SourceGen(outfile, [bangline]) An instance of this SourceGen class is a factory for generating python source code, by writing to a file object. |
| Function Summary | |
|---|---|
genClass(name, parents, [attribs, [doc, [methods]]]) Return a string of Python source code defineing a class object. | |
genComment(text)
| |
genFunc(funcname,
params,
body,
globals,
doc)
| |
genImport(module,
obj,
indent)
| |
genMethod(funcname,
params,
body,
globals,
doc)
| |
get_generator(outfile)
| |
get_sourcefile(outfile,
bangline)
| |
_tuplestr(tup)
| |
| Function Details |
|---|
genClass(klassname, parents, attribs=None, doc=None, methods=None)
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 | Index | Help |
|---|
| Generated by Epydoc 2.1 on Wed Jan 31 09:57:59 2007 | http://epydoc.sf.net |