Lines Matching defs:items
211 Py_CLEAR(state->items);
314 if ((state->items = PyUnicode_InternFromString("items")) == NULL) return 0;
468 "items",
473 "items",
1145 " | With(withitem* items, stmt* body, string? type_comment)\n"
1146 " | AsyncWith(withitem* items, stmt* body, string? type_comment)\n"
1240 "With(withitem* items, stmt* body, string? type_comment)");
1246 "AsyncWith(withitem* items, stmt* body, string? type_comment)");
2293 _PyAST_With(asdl_withitem_seq * items, asdl_stmt_seq * body, string
2302 p->v.With.items = items;
2313 _PyAST_AsyncWith(asdl_withitem_seq * items, asdl_stmt_seq * body, string
2322 p->v.AsyncWith.items = items;
4000 value = ast2obj_list(state, (asdl_seq*)o->v.With.items,
4003 if (PyObject_SetAttr(result, state->items, value) == -1)
4021 value = ast2obj_list(state, (asdl_seq*)o->v.AsyncWith.items,
4024 if (PyObject_SetAttr(result, state->items, value) == -1)
7134 asdl_withitem_seq* items;
7138 if (_PyObject_LookupAttr(obj, state->items, &tmp) < 0) {
7142 PyErr_SetString(PyExc_TypeError, "required field \"items\" missing from With");
7150 PyErr_Format(PyExc_TypeError, "With field \"items\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
7154 items = _Py_asdl_withitem_seq_new(len, arena);
7155 if (items == NULL) goto failed;
7168 PyErr_SetString(PyExc_RuntimeError, "With field \"items\" changed size during iteration");
7171 asdl_seq_SET(items, i, val);
7229 *out = _PyAST_With(items, body, type_comment, lineno, col_offset,
7240 asdl_withitem_seq* items;
7244 if (_PyObject_LookupAttr(obj, state->items, &tmp) < 0) {
7248 PyErr_SetString(PyExc_TypeError, "required field \"items\" missing from AsyncWith");
7256 PyErr_Format(PyExc_TypeError, "AsyncWith field \"items\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
7260 items = _Py_asdl_withitem_seq_new(len, arena);
7261 if (items == NULL) goto failed;
7274 PyErr_SetString(PyExc_RuntimeError, "AsyncWith field \"items\" changed size during iteration");
7277 asdl_seq_SET(items, i, val);
7335 *out = _PyAST_AsyncWith(items, body, type_comment, lineno, col_offset,