Lines Matching defs:ops
236 Py_CLEAR(state->ops);
335 if ((state->ops = PyUnicode_InternFromString("ops")) == NULL) return 0;
586 "ops",
1326 " | Compare(expr left, cmpop* ops, expr* comparators)\n"
1409 "Compare(expr left, cmpop* ops, expr* comparators)");
2954 _PyAST_Compare(expr_ty left, asdl_int_seq * ops, asdl_expr_seq * comparators,
2969 p->v.Compare.ops = ops;
4498 Py_ssize_t i, n = asdl_seq_LEN(o->v.Compare.ops);
4502 PyList_SET_ITEM(value, i, ast2obj_cmpop(state, (cmpop_ty)asdl_seq_GET(o->v.Compare.ops, i)));
4505 if (PyObject_SetAttr(result, state->ops, value) == -1)
9095 asdl_int_seq* ops;
9115 if (_PyObject_LookupAttr(obj, state->ops, &tmp) < 0) {
9119 PyErr_SetString(PyExc_TypeError, "required field \"ops\" missing from Compare");
9127 PyErr_Format(PyExc_TypeError, "Compare field \"ops\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
9131 ops = _Py_asdl_int_seq_new(len, arena);
9132 if (ops == NULL) goto failed;
9145 PyErr_SetString(PyExc_RuntimeError, "Compare field \"ops\" changed size during iteration");
9148 asdl_seq_SET(ops, i, val);
9189 *out = _PyAST_Compare(left, ops, comparators, lineno, col_offset,