pg.mutfun.BinaryOperator#

Accessible via pg.mutfun.BinaryOperator.

class BinaryOperator(x, y)[source]#

Bases: pg.mutfun.Operator

Base class for binary math operations.

Methods:

evaluate(context)

Evaluates current instruction with variable dictionary.

python_repr([block_indent])

Returns a Python code representation of current instruction.

evaluate(context)[source]#

Evaluates current instruction with variable dictionary.

Return type:

Any

python_repr(block_indent=0)[source]#

Returns a Python code representation of current instruction.

Return type:

str