/third_party/python/Parser/ |
D | pegen.c | 1959 _PyPegen_star_etc(Parser *p, arg_ty vararg, asdl_seq *kwonlyargs, arg_ty kwarg) in _PyPegen_star_etc() argument 1966 a->kwonlyargs = kwonlyargs; in _PyPegen_star_etc() 2106 asdl_arg_seq **kwonlyargs, in _make_kwargs() argument 2108 if (star_etc != NULL && star_etc->kwonlyargs != NULL) { in _make_kwargs() 2109 *kwonlyargs = _get_names(p, star_etc->kwonlyargs); in _make_kwargs() 2112 *kwonlyargs = _Py_asdl_arg_seq_new(0, p->arena); in _make_kwargs() 2115 if (*kwonlyargs == NULL) { in _make_kwargs() 2119 if (star_etc != NULL && star_etc->kwonlyargs != NULL) { in _make_kwargs() 2120 *kwdefaults = _get_defaults(p, star_etc->kwonlyargs); in _make_kwargs() 2159 asdl_arg_seq *kwonlyargs; in _PyPegen_make_arguments() local [all …]
|
D | Python.asdl | 111 arguments = (arg* posonlyargs, arg* args, arg? vararg, arg* kwonlyargs,
|
D | pegen.h | 108 asdl_seq *kwonlyargs; // asdl_seq* of NameDefaultsPair's member
|
/third_party/python/Lib/ |
D | inspect.py | 1204 kwonlyargs = list(names[nargs:nargs+nkwargs]) 1215 return Arguments(args + kwonlyargs, varargs, varkw) 1242 args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, ann = \ 1244 if kwonlyargs or ann: 1301 kwonlyargs = [] 1324 kwonlyargs.append(name) 1342 kwonlyargs, kwdefaults, annotations) 1375 kwonlyargs=(), kwonlydefaults={}, annotations={}, argument 1417 if kwonlyargs: 1419 if kwonlyargs: [all …]
|
D | ast.py | 1524 if node.vararg or node.kwonlyargs: 1537 if node.kwonlyargs: 1538 for a, d in zip(node.kwonlyargs, node.kw_defaults):
|
/third_party/python/Python/ |
D | ast_unparse.c | 246 if (args->vararg || asdl_seq_LEN(args->kwonlyargs)) { in append_ast_args() 255 arg_count = asdl_seq_LEN(args->kwonlyargs); in append_ast_args() 259 APPEND(arg, (arg_ty)asdl_seq_GET(args->kwonlyargs, i)); in append_ast_args()
|
D | symtable.c | 1876 if (a->kwonlyargs && !symtable_visit_argannotations(st, a->kwonlyargs)) in symtable_visit_annotations() 1897 if (a->kwonlyargs && !symtable_visit_params(st, a->kwonlyargs)) in symtable_visit_arguments()
|
D | ast.c | 109 if (!validate_args(state, args->kwonlyargs)) in validate_arguments() 119 if (asdl_seq_LEN(args->kw_defaults) != asdl_seq_LEN(args->kwonlyargs)) { in validate_arguments()
|
D | compile.c | 2084 compiler_visit_kwonlydefaults(struct compiler *c, asdl_arg_seq *kwonlyargs, in compiler_visit_kwonlydefaults() argument 2094 for (i = 0; i < asdl_seq_LEN(kwonlyargs); i++) { in compiler_visit_kwonlydefaults() 2095 arg_ty arg = asdl_seq_GET(kwonlyargs, i); in compiler_visit_kwonlydefaults() 2209 if (!compiler_visit_argannotations(c, args->kwonlyargs, &annotations_len)) in compiler_visit_annotations() 2250 if (args->kwonlyargs) { in compiler_default_arguments() 2251 int res = compiler_visit_kwonlydefaults(c, args->kwonlyargs, in compiler_default_arguments() 2309 if (!compiler_check_debug_args_seq(c, args->kwonlyargs)) in compiler_check_debug_args() 2392 c->u->u_kwonlyargcount = asdl_seq_LEN(args->kwonlyargs); in compiler_function() 2799 c->u->u_kwonlyargcount = asdl_seq_LEN(args->kwonlyargs); in compiler_lambda()
|
D | Python-ast.c | 220 Py_CLEAR(state->kwonlyargs); in _PyAST_Fini() 322 if ((state->kwonlyargs = PyUnicode_InternFromString("kwonlyargs")) == NULL) return 0; in init_identifiers() 3269 vararg, asdl_arg_seq * kwonlyargs, asdl_expr_seq * in _PyAST_arguments() argument 3280 p->kwonlyargs = kwonlyargs; in _PyAST_arguments() 4899 value = ast2obj_list(state, (asdl_seq*)o->kwonlyargs, ast2obj_arg); in ast2obj_arguments() 4901 if (PyObject_SetAttr(result, state->kwonlyargs, value) == -1) in ast2obj_arguments() 10197 asdl_arg_seq* kwonlyargs; in obj2ast_arguments() local 10293 if (_PyObject_LookupAttr(obj, state->kwonlyargs, &tmp) < 0) { in obj2ast_arguments() 10309 kwonlyargs = _Py_asdl_arg_seq_new(len, arena); in obj2ast_arguments() 10310 if (kwonlyargs == NULL) goto failed; in obj2ast_arguments() [all …]
|
D | ast_opt.c | 636 CALL_SEQ(astfold_arg, arg, node_->kwonlyargs); in astfold_arguments()
|
/third_party/mindspore/mindspore/_extends/parse/ |
D | parser.py | 491 if node.args.kwonlyargs: 492 for kwarg in node.args.kwonlyargs:
|
/third_party/python/Include/internal/ |
D | pycore_ast_state.h | 206 PyObject *kwonlyargs; member
|
D | pycore_ast.h | 517 asdl_arg_seq *kwonlyargs; member 795 arg_ty vararg, asdl_arg_seq * kwonlyargs,
|
/third_party/python/Lib/test/ |
D | test_ast.py | 1123 kwonlyargs=None, kwarg=None, argument 1129 if kwonlyargs is None: 1130 kwonlyargs = [] 1135 args = ast.arguments(args, posonlyargs, vararg, kwonlyargs, 1141 check(arguments(kwonlyargs=args), "must have Load context") 1151 check(arguments(kwonlyargs=args,
|
D | test_inspect.py | 874 args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, ann = \ 880 self.assertEqual(kwonlyargs, kwonlyargs_e) 886 kwonlyargs, kwonlydefaults, ann), 1030 l = list(signature.kwonlyargs) 1035 l = list(signature.kwonlyargs)
|
/third_party/python/Doc/library/ |
D | inspect.rst | 959 ``FullArgSpec(args, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, 970 *kwonlyargs* is a list of keyword-only parameter names in declaration order. 971 *kwonlydefaults* is a dictionary mapping parameter names from *kwonlyargs* 1014 .. function:: formatargspec(args[, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotation… 1020 ``defaults``, ``kwonlyargs``, ``kwonlydefaults``, ``annotations``).
|
D | ast.rst | 1652 kwonlyargs=[], 1659 .. class:: arguments(posonlyargs, args, vararg, kwonlyargs, kw_defaults, kwarg, defaults) 1663 * ``posonlyargs``, ``args`` and ``kwonlyargs`` are lists of :class:`arg` nodes. 1704 kwonlyargs=[ 1859 kwonlyargs=[],
|