Searched refs:kw_defaults (Results 1 – 14 of 14) sorted by relevance
/external/tensorflow/tensorflow/python/autograph/converters/ |
D | arg_defaults.py | 68 for i, d in enumerate(node.kw_defaults): 70 node.kw_defaults[i] = parser.parse_expression('None')
|
/external/tensorflow/tensorflow/python/autograph/pyct/ |
D | compiler_test.py | 81 kw_defaults=[]),
|
/external/python/cpython3/Lib/test/ |
D | test_ast.py | 652 defaults=None, kw_defaults=None): argument 659 if kw_defaults is None: 660 kw_defaults = [] 661 args = ast.arguments(args, vararg, kwonlyargs, kw_defaults, 669 check(arguments(kw_defaults=[ast.Num(4)]), 677 kw_defaults=[None, ast.Name("x", ast.Store())]),
|
/external/python/cpython3/Python/ |
D | symtable.c | 1124 if (s->v.FunctionDef.args->kw_defaults) in symtable_visit_stmt() 1125 VISIT_SEQ_WITH_NULL(st, expr, s->v.FunctionDef.args->kw_defaults); in symtable_visit_stmt() 1340 if (s->v.AsyncFunctionDef.args->kw_defaults) in symtable_visit_stmt() 1342 s->v.AsyncFunctionDef.args->kw_defaults); in symtable_visit_stmt() 1397 if (e->v.Lambda.args->kw_defaults) in symtable_visit_expr() 1398 VISIT_SEQ_WITH_NULL(st, expr, e->v.Lambda.args->kw_defaults); in symtable_visit_expr()
|
D | ast_unparse.c | 225 default_count = asdl_seq_LEN(args->kw_defaults); in append_ast_args() 232 expr_ty default_ = (expr_ty)asdl_seq_GET(args->kw_defaults, di); in append_ast_args()
|
D | Python-ast.c | 462 _Py_IDENTIFIER(kw_defaults); 2481 kw_defaults, arg_ty kwarg, asdl_seq * defaults, PyArena *arena) in arguments() argument 2490 p->kw_defaults = kw_defaults; in arguments() 3797 value = ast2obj_list(o->kw_defaults, ast2obj_expr); in ast2obj_arguments() 7802 asdl_seq* kw_defaults; in obj2ast_arguments() local 7895 kw_defaults = _Py_asdl_seq_new(len, arena); in obj2ast_arguments() 7896 if (kw_defaults == NULL) goto failed; in obj2ast_arguments() 7905 asdl_seq_SET(kw_defaults, i, val); in obj2ast_arguments() 7952 *out = arguments(args, vararg, kwonlyargs, kw_defaults, kwarg, defaults, in obj2ast_arguments()
|
D | ast_opt.c | 665 CALL_SEQ(astfold_expr, expr_ty, node_->kw_defaults); in astfold_arguments()
|
D | compile.c | 1668 asdl_seq *kw_defaults) in compiler_visit_kwonlydefaults() argument 1679 expr_ty default_ = asdl_seq_GET(kw_defaults, i); in compiler_visit_kwonlydefaults() 1857 args->kw_defaults); in compiler_default_arguments()
|
D | ast.c | 127 if (asdl_seq_LEN(args->kw_defaults) != asdl_seq_LEN(args->kwonlyargs)) { in validate_arguments() 132 return validate_exprs(args->defaults, Load, 0) && validate_exprs(args->kw_defaults, Load, 1); in validate_arguments()
|
/external/python/cpython3/Parser/ |
D | Python.asdl | 118 arguments = (arg* args, arg? vararg, arg* kwonlyargs, expr* kw_defaults,
|
/external/python/cpython3/Include/ |
D | Python-ast.h | 414 asdl_seq *kw_defaults; member 622 kwonlyargs, asdl_seq * kw_defaults, arg_ty kwarg,
|
/external/python/cpython3/Tools/parser/ |
D | unparse.py | 625 for a, d in zip(t.kwonlyargs, t.kw_defaults):
|
/external/python/cpython3/Lib/ |
D | inspect.py | 2073 for name, default in zip(f.args.kwonlyargs, f.args.kw_defaults):
|
/external/python/cpython3/Tools/clinic/ |
D | clinic.py | 3764 if function_args.defaults or function_args.kw_defaults:
|