Home
last modified time | relevance | path

Searched refs:kwdefaults (Results 1 – 5 of 5) sorted by relevance

/external/python/cpython3/Lib/
Dinspect.py1141 kwdefaults = {}
1161 kwdefaults[name] = param.default
1168 if not kwdefaults:
1170 kwdefaults = None
1177 kwonlyargs, kwdefaults, annotations)
1852 kwdefaults = getattr(obj, '__kwdefaults__', _void) # ... and not None here
1858 (kwdefaults is None or isinstance(kwdefaults, dict)) and
2140 kwdefaults = func.__kwdefaults__
2173 if kwdefaults is not None:
2174 default = kwdefaults.get(name, _empty)
Dtyping.py912 kwdefaults = func.__kwdefaults__
913 res = dict(kwdefaults) if kwdefaults else {}
/external/python/funcsigs/funcsigs/
D__init__.py530 kwdefaults = getattr(func, '__kwdefaults__', None)
563 if kwdefaults is not None:
564 default = kwdefaults.get(name, _empty)
/external/python/cpython3/Python/
Dast.c1251 asdl_seq *kwonlyargs, asdl_seq *kwdefaults) in handle_keywordonly_args() argument
1264 assert(kwdefaults != NULL); in handle_keywordonly_args()
1274 asdl_seq_SET(kwdefaults, j, expression); in handle_keywordonly_args()
1278 asdl_seq_SET(kwdefaults, j, NULL); in handle_keywordonly_args()
1340 asdl_seq *posargs, *posdefaults, *kwonlyargs, *kwdefaults; in ast_for_arguments() local
1393 kwdefaults = (nkwonlyargs ? in ast_for_arguments()
1395 if (!kwdefaults && nkwonlyargs) in ast_for_arguments()
1444 kwonlyargs, kwdefaults); in ast_for_arguments()
1458 kwonlyargs, kwdefaults); in ast_for_arguments()
1479 return arguments(posargs, vararg, kwonlyargs, kwdefaults, kwarg, posdefaults, c->c_arena); in ast_for_arguments()
/external/python/cpython3/Misc/
DHISTORY16117 uses ``kwonlydefaults`` instead of ``kwdefaults``.