PythonComparison AST Python Object
The PythonComparison
object matches a Python class definition.
The astType
value for this node is comparison
.
Code Pattern
This AST element captures a == b
in the following code:
if a == b:
pass
Attributes
leftSide
(typeAstElement
): left element of the comparisonoperator
(typeAstElement
): operator (like==
,<>
, etc.)rightSide
(typeAstElement
): right element of the comparison