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