Home
last modified time | relevance | path

Searched refs:kw_defaults (Results 1 – 15 of 15) sorted by relevance

/third_party/python/Include/internal/
Dpycore_ast_state.h202 PyObject *kw_defaults; member
Dpycore_ast.h518 asdl_expr_seq *kw_defaults; member
796 asdl_expr_seq * kw_defaults, arg_ty kwarg,
/third_party/python/Python/
Dsymtable.c1213 if (s->v.FunctionDef.args->kw_defaults) in symtable_visit_stmt()
1214 VISIT_SEQ_WITH_NULL(st, expr, s->v.FunctionDef.args->kw_defaults); in symtable_visit_stmt()
1446 if (s->v.AsyncFunctionDef.args->kw_defaults) in symtable_visit_stmt()
1448 s->v.AsyncFunctionDef.args->kw_defaults); in symtable_visit_stmt()
1610 if (e->v.Lambda.args->kw_defaults) in symtable_visit_expr()
1611 VISIT_SEQ_WITH_NULL(st, expr, e->v.Lambda.args->kw_defaults); in symtable_visit_expr()
Dast_unparse.c256 default_count = asdl_seq_LEN(args->kw_defaults); in append_ast_args()
263 expr_ty default_ = (expr_ty)asdl_seq_GET(args->kw_defaults, di); in append_ast_args()
Dast.c119 if (asdl_seq_LEN(args->kw_defaults) != asdl_seq_LEN(args->kwonlyargs)) { in validate_arguments()
124 …alidate_exprs(state, args->defaults, Load, 0) && validate_exprs(state, args->kw_defaults, Load, 1); in validate_arguments()
DPython-ast.c216 Py_CLEAR(state->kw_defaults); in _PyAST_Fini()
318 if ((state->kw_defaults = PyUnicode_InternFromString("kw_defaults")) == NULL) return 0; in init_identifiers()
3270 kw_defaults, arg_ty kwarg, asdl_expr_seq * defaults, PyArena in _PyAST_arguments() argument
3281 p->kw_defaults = kw_defaults; in _PyAST_arguments()
4904 value = ast2obj_list(state, (asdl_seq*)o->kw_defaults, ast2obj_expr); in ast2obj_arguments()
4906 if (PyObject_SetAttr(result, state->kw_defaults, value) == -1) in ast2obj_arguments()
10198 asdl_expr_seq* kw_defaults; in obj2ast_arguments() local
10330 if (_PyObject_LookupAttr(obj, state->kw_defaults, &tmp) < 0) { in obj2ast_arguments()
10346 kw_defaults = _Py_asdl_expr_seq_new(len, arena); in obj2ast_arguments()
10347 if (kw_defaults == NULL) goto failed; in obj2ast_arguments()
[all …]
Dast_opt.c637 CALL_SEQ(astfold_expr, expr, node_->kw_defaults); in astfold_arguments()
Dcompile.c2085 asdl_expr_seq *kw_defaults) in compiler_visit_kwonlydefaults() argument
2096 expr_ty default_ = asdl_seq_GET(kw_defaults, i); in compiler_visit_kwonlydefaults()
2252 args->kw_defaults); in compiler_default_arguments()
/third_party/python/Parser/
DPython.asdl112 expr* kw_defaults, arg? kwarg, expr* defaults)
/third_party/python/Lib/test/
Dtest_ast.py1124 defaults=None, kw_defaults=None): argument
1133 if kw_defaults is None:
1134 kw_defaults = []
1136 kw_defaults, kwarg, defaults)
1144 check(arguments(kw_defaults=[ast.Num(4)]),
1152 kw_defaults=[None, ast.Name("x", ast.Store())]),
/third_party/mindspore/mindspore/_extends/parse/
Dparser.py475 defaults = nondefaults + node.args.defaults + node.args.kw_defaults
/third_party/python/Doc/library/
Dast.rst1653 kw_defaults=[],
1659 .. class:: arguments(posonlyargs, args, vararg, kwonlyargs, kw_defaults, kwarg, defaults)
1666 * ``kw_defaults`` is a list of default values for keyword-only arguments. If
1707 kw_defaults=[
1860 kw_defaults=[],
/third_party/python/Lib/
Dast.py1538 for a, d in zip(node.kwonlyargs, node.kw_defaults):
Dinspect.py2232 for name, default in zip(f.args.kwonlyargs, f.args.kw_defaults):
/third_party/python/Tools/clinic/
Dclinic.py4437 if function_args.defaults or function_args.kw_defaults: