pep.pep.Program

class pep.pep.Program[source]

Program class

Variables:
__init__()[source]

Methods

__init__()
isActivatedByEnzyme() Checks whether the production function activation condition Enzyme > min(PROD_FUNCTION_VARIABLES) is true
print([indentSpaces, toString]) Print a program with a given indentation level
isActivatedByEnzyme()[source]

Checks whether the production function activation condition Enzyme > min(PROD_FUNCTION_VARIABLES) is true :returns: True / False

print(indentSpaces=2, toString=False)[source]

Print a program with a given indentation level

IndentSpaces:number of spaces used for indentation
ToString:write to a string instead of stdout
Returns:string print of the rule if toString = True otherwise returns None