(stringOp)
| 195 | |
| 196 | |
| 197 | def isCompareOp(stringOp): |
| 198 | # Eq | NotEq | Lt | LtE | Gt | GtE | Is | IsNot | In | NotIn |
| 199 | return stringOp in { |
| 200 | "==", |
| 201 | "!=", |
| 202 | "<", |
| 203 | "<=", |
| 204 | ">", |
| 205 | ">=", |
| 206 | "is", |
| 207 | "is not", |
| 208 | "in", |
| 209 | "not in", |
| 210 | } |
| 211 | |
| 212 | |
| 213 | def getAstUnaryOperator(stringOp): |