pg.mutfun.Function¶
Accessible via pg.mutfun.Function.
- class Function(name, body, args=[])[source]¶
Bases:
pg.mutfun.SymbolDefinitionA function that contains a list of instructions.
Methods:
compile()Compiles current function.
evaluate(context)Evaluates current instruction with variable dictionary.
prune()Prune useless instructions.
python_repr([block_indent])Returns a Python code representation of current instruction.