pep.pep.DistributionRule

class pep.pep.DistributionRule[source]

Class for the distribution rules that make up a program, together with the production rules

Variables:
  • proportion (int) –
  • variable (Pobject) –
__init__()[source]

Methods

__init__()
print([indentSpaces, toString]) Print a distribution rule with a given indentation level
print(indentSpaces=2, toString=False)[source]

Print a distribution rule 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