operators
operators
#
Boolean and numeric operators bound onto Procedure.
Each is a shorthand for constructing the matching operator node (BoolNot,
BoolAnd, NumberLessThan, …) exactly as building it by hand would. They
are imported into the Procedure class body, so the node imports are lazy.
__and__(self, other)
#
a & b — a BoolAnd node.
Source code in capturegraph-lib/capturegraph/procedures/procedure/methods/operators.py
__ge__(self, other)
#
a >= b — BoolNot(NumberLessThan(a, b)).
__gt__(self, other)
#
a > b — NumberLessThan with the operands swapped.
__invert__(self)
#
~a — a BoolNot node.
__le__(self, other)
#
a <= b — BoolNot(NumberLessThan(b, a)).
__lt__(self, other)
#
a < b — a NumberLessThan node.
Source code in capturegraph-lib/capturegraph/procedures/procedure/methods/operators.py
__or__(self, other)
#
a | b — a BoolOr node.