class documentation

class ComparisonExpr(Expression): (source)

View In Hierarchy

Comparison expression (e.g. a < b > c < d).
Method __init__ Undocumented
Method accept Undocumented
Method pairwise If this comparison expr is "a < b is c == d", yields the sequence ("<", a, b), ("is", b, c), ("==", c, d)
Class Variable __slots__ Undocumented
Instance Variable method​_types Undocumented
Instance Variable operands Undocumented
Instance Variable operators Undocumented

Inherited from Node (via Expression):

Method __str__ Undocumented

Inherited from Context (via Expression, Node):

Method get​_column Don't use. Use x.column.
Method get​_line Don't use. Use x.line.
Method set​_line If target is a node, pull line (and column) information into this node. If column is specified, this will override any column information coming from a node.
Instance Variable column Undocumented
Instance Variable end​_line Undocumented
Instance Variable line Undocumented
def __init__(self, operators, operands): (source)

Undocumented

Parameters
operators:List[str]Undocumented
operands:List[Expression]Undocumented
def accept(self, visitor): (source)

Undocumented

Parameters
visitor:ExpressionVisitor[T]Undocumented
Returns
TUndocumented
def pairwise(self): (source)
If this comparison expr is "a < b is c == d", yields the sequence ("<", a, b), ("is", b, c), ("==", c, d)
Returns
Iterator[Tuple[str, Expression, Expression]]Undocumented
__slots__: tuple[str, ...] = (source)

Undocumented

method_types: list = (source)

Undocumented

operands = (source)

Undocumented

operators = (source)

Undocumented