Lines Matching refs:elts
195 Py_CLEAR(state->elts);
301 if ((state->elts = PyUnicode_InternFromString("elts")) == NULL) return 0;
556 "elts",
625 "elts",
629 "elts",
1318 " | Set(expr* elts)\n"
1335 " | List(expr* elts, expr_context ctx)\n"
1336 " | Tuple(expr* elts, expr_context ctx)\n"
1374 "Set(expr* elts)");
1451 "List(expr* elts, expr_context ctx)");
1455 "Tuple(expr* elts, expr_context ctx)");
2774 _PyAST_Set(asdl_expr_seq * elts, int lineno, int col_offset, int end_lineno,
2782 p->v.Set.elts = elts;
3195 _PyAST_List(asdl_expr_seq * elts, expr_context_ty ctx, int lineno, int
3208 p->v.List.elts = elts;
3218 _PyAST_Tuple(asdl_expr_seq * elts, expr_context_ty ctx, int lineno, int
3231 p->v.Tuple.elts = elts;
4383 value = ast2obj_list(state, (asdl_seq*)o->v.Set.elts, ast2obj_expr);
4385 if (PyObject_SetAttr(result, state->elts, value) == -1)
4656 value = ast2obj_list(state, (asdl_seq*)o->v.List.elts, ast2obj_expr);
4658 if (PyObject_SetAttr(result, state->elts, value) == -1)
4671 value = ast2obj_list(state, (asdl_seq*)o->v.Tuple.elts, ast2obj_expr);
4673 if (PyObject_SetAttr(result, state->elts, value) == -1)
8664 asdl_expr_seq* elts;
8666 if (_PyObject_LookupAttr(obj, state->elts, &tmp) < 0) {
8670 PyErr_SetString(PyExc_TypeError, "required field \"elts\" missing from Set");
8678 PyErr_Format(PyExc_TypeError, "Set field \"elts\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
8682 elts = _Py_asdl_expr_seq_new(len, arena);
8683 if (elts == NULL) goto failed;
8696 PyErr_SetString(PyExc_RuntimeError, "Set field \"elts\" changed size during iteration");
8699 asdl_seq_SET(elts, i, val);
8703 *out = _PyAST_Set(elts, lineno, col_offset, end_lineno, end_col_offset,
9699 asdl_expr_seq* elts;
9702 if (_PyObject_LookupAttr(obj, state->elts, &tmp) < 0) {
9706 PyErr_SetString(PyExc_TypeError, "required field \"elts\" missing from List");
9714 PyErr_Format(PyExc_TypeError, "List field \"elts\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
9718 elts = _Py_asdl_expr_seq_new(len, arena);
9719 if (elts == NULL) goto failed;
9732 PyErr_SetString(PyExc_RuntimeError, "List field \"elts\" changed size during iteration");
9735 asdl_seq_SET(elts, i, val);
9756 *out = _PyAST_List(elts, ctx, lineno, col_offset, end_lineno,
9767 asdl_expr_seq* elts;
9770 if (_PyObject_LookupAttr(obj, state->elts, &tmp) < 0) {
9774 PyErr_SetString(PyExc_TypeError, "required field \"elts\" missing from Tuple");
9782 PyErr_Format(PyExc_TypeError, "Tuple field \"elts\" must be a list, not a %.200s", _PyType_Name(Py_TYPE(tmp)));
9786 elts = _Py_asdl_expr_seq_new(len, arena);
9787 if (elts == NULL) goto failed;
9800 PyErr_SetString(PyExc_RuntimeError, "Tuple field \"elts\" changed size during iteration");
9803 asdl_seq_SET(elts, i, val);
9824 *out = _PyAST_Tuple(elts, ctx, lineno, col_offset, end_lineno,