Lines Matching defs:slice
247 Py_CLEAR(state->slice);
345 if ((state->slice = PyUnicode_InternFromString("slice")) == NULL) return 0;
613 "slice",
1332 " | Subscript(expr value, expr slice, expr_context ctx)\n"
1439 "Subscript(expr value, expr slice, expr_context ctx)");
3104 _PyAST_Subscript(expr_ty value, expr_ty slice, expr_context_ty ctx, int lineno,
3114 if (!slice) {
3116 "field 'slice' is required for Subscript");
3129 p->v.Subscript.slice = slice;
4611 value = ast2obj_expr(state, o->v.Subscript.slice);
4613 if (PyObject_SetAttr(result, state->slice, value) == -1)
9538 expr_ty slice;
9558 if (_PyObject_LookupAttr(obj, state->slice, &tmp) < 0) {
9562 PyErr_SetString(PyExc_TypeError, "required field \"slice\" missing from Subscript");
9570 res = obj2ast_expr(state, tmp, &slice, arena);
9592 *out = _PyAST_Subscript(value, slice, ctx, lineno, col_offset,