/third_party/python/Include/internal/ |
D | pycore_ast_state.h | 202 PyObject *kw_defaults; member
|
D | pycore_ast.h | 518 asdl_expr_seq *kw_defaults; member 796 asdl_expr_seq * kw_defaults, arg_ty kwarg,
|
/third_party/python/Python/ |
D | symtable.c | 1213 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()
|
D | ast_unparse.c | 256 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()
|
D | ast.c | 119 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()
|
D | Python-ast.c | 216 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 …]
|
D | ast_opt.c | 637 CALL_SEQ(astfold_expr, expr, node_->kw_defaults); in astfold_arguments()
|
D | compile.c | 2085 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/ |
D | Python.asdl | 112 expr* kw_defaults, arg? kwarg, expr* defaults)
|
/third_party/python/Lib/test/ |
D | test_ast.py | 1124 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/ |
D | parser.py | 475 defaults = nondefaults + node.args.defaults + node.args.kw_defaults
|
/third_party/python/Doc/library/ |
D | ast.rst | 1653 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/ |
D | ast.py | 1538 for a, d in zip(node.kwonlyargs, node.kw_defaults):
|
D | inspect.py | 2232 for name, default in zip(f.args.kwonlyargs, f.args.kw_defaults):
|
/third_party/python/Tools/clinic/ |
D | clinic.py | 4437 if function_args.defaults or function_args.kw_defaults:
|