friendlysam.opt.Operation¶
-
class
friendlysam.opt.
Operation
¶ An operation on some arguments.
This is a base class. Concrete examples:
Arithmetic operations:
Relations:
Operation.create (*args) |
Classmethod to create a new object. |
Operation.evaluate ([replace, evaluators]) |
Evaluate the expression recursively. |
Operation.args |
This property holds the arguments of the operation. |
Operation.leaves |
The leaves of the expression tree. |
Operation.value |
The concrete value of the expression, if possible. |
Operation.variables |
This property gives all leaves which are instances of Variable . |