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 __match_args__ Undocumented
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 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_column Undocumented
Instance Variable end_line Undocumented
Instance Variable line Undocumented
def __init__(self, operators: list[str], operands: list[Expression]): (source)

Undocumented

def accept(self, visitor: ExpressionVisitor[T]) -> T: (source)

Undocumented

If this comparison expr is "a < b is c == d", yields the sequence ("<", a, b), ("is", b, c), ("==", c, d)

__match_args__: tuple[str, ...] = (source)

Undocumented

__slots__: tuple[str, ...] = (source)

Undocumented

method_types: list = (source)

Undocumented

operands = (source)

Undocumented

operators = (source)

Undocumented