Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/autograph/pyct/
Dtranspiler.py194 kwdefaults=None): argument
221 if kwdefaults:
222 new_fn.__kwdefaults__ = kwdefaults
498 kwdefaults=getattr(fn, '__kwdefaults__', None))
/external/python/cpython3/Parser/pegen/
Dpegen.c1848 asdl_seq *kwdefaults; in _PyPegen_make_arguments() local
1850 kwdefaults = _get_defaults(p, star_etc->kwonlyargs); in _PyPegen_make_arguments()
1851 if (!kwdefaults) { in _PyPegen_make_arguments()
1856 kwdefaults = _Py_asdl_seq_new(0, p->arena); in _PyPegen_make_arguments()
1857 if (!kwdefaults) { in _PyPegen_make_arguments()
1867 return _Py_arguments(posonlyargs, posargs, vararg, kwonlyargs, kwdefaults, kwarg, in _PyPegen_make_arguments()
1892 asdl_seq *kwdefaults = _Py_asdl_seq_new(0, p->arena); in _PyPegen_empty_arguments() local
1893 if (!kwdefaults) { in _PyPegen_empty_arguments()
1897 return _Py_arguments(posonlyargs, posargs, NULL, kwonlyargs, kwdefaults, NULL, kwdefaults, in _PyPegen_empty_arguments()
/external/python/cpython3/Lib/
Dinspect.py1180 kwdefaults = {}
1202 kwdefaults[name] = param.default
1209 if not kwdefaults:
1211 kwdefaults = None
1218 kwonlyargs, kwdefaults, annotations)
1891 kwdefaults = getattr(obj, '__kwdefaults__', _void) # ... and not None here
1897 (kwdefaults is None or isinstance(kwdefaults, dict)) and
2178 kwdefaults = func.__kwdefaults__
2219 if kwdefaults is not None:
2220 default = kwdefaults.get(name, _empty)
Dtyping.py1348 kwdefaults = func.__kwdefaults__
1349 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.c1341 asdl_seq *kwonlyargs, asdl_seq *kwdefaults) in handle_keywordonly_args() argument
1354 assert(kwdefaults != NULL); in handle_keywordonly_args()
1364 asdl_seq_SET(kwdefaults, j, expression); in handle_keywordonly_args()
1368 asdl_seq_SET(kwdefaults, j, NULL); in handle_keywordonly_args()
1482 asdl_seq *posonlyargs, *posargs, *posdefaults, *kwonlyargs, *kwdefaults; in ast_for_arguments() local
1543 kwdefaults = (nkwonlyargs ? in ast_for_arguments()
1545 if (!kwdefaults && nkwonlyargs) in ast_for_arguments()
1617 kwonlyargs, kwdefaults); in ast_for_arguments()
1641 kwonlyargs, kwdefaults); in ast_for_arguments()
1676 …return arguments(posonlyargs, posargs, vararg, kwonlyargs, kwdefaults, kwarg, posdefaults, c->c_ar… in ast_for_arguments()
/external/python/cpython3/Misc/
DHISTORY16117 uses ``kwonlydefaults`` instead of ``kwdefaults``.