Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/python/autograph/pyct/
Dtranspiler.py190 kwdefaults=None): argument
217 if kwdefaults:
218 new_fn.__kwdefaults__ = kwdefaults
494 kwdefaults=getattr(fn, '__kwdefaults__', None))
/external/python/cpython3/Include/
Dfuncobject.h18 PyObject *PREFIX ## kwdefaults; /* NULL or a dict */ \
/external/python/cpython3/Parser/
Dpegen.c2132 asdl_expr_seq **kwdefaults) { in _make_kwargs() argument
2145 *kwdefaults = _get_defaults(p, star_etc->kwonlyargs); in _make_kwargs()
2148 *kwdefaults = _Py_asdl_expr_seq_new(0, p->arena); in _make_kwargs()
2151 if (*kwdefaults == NULL) { in _make_kwargs()
2185 asdl_expr_seq *kwdefaults; in _PyPegen_make_arguments() local
2186 if (_make_kwargs(p, star_etc, &kwonlyargs, &kwdefaults) == -1) { in _PyPegen_make_arguments()
2196 kwdefaults, kwarg, posdefaults, p->arena); in _PyPegen_make_arguments()
2221 asdl_expr_seq *kwdefaults = _Py_asdl_expr_seq_new(0, p->arena); in _PyPegen_empty_arguments() local
2222 if (!kwdefaults) { in _PyPegen_empty_arguments()
2227 kwdefaults, NULL, posdefaults, p->arena); in _PyPegen_empty_arguments()
/external/python/cpython3/Lib/
Dinspect.py1304 kwdefaults = {}
1326 kwdefaults[name] = param.default
1333 if not kwdefaults:
1335 kwdefaults = None
1342 kwonlyargs, kwdefaults, annotations)
2017 kwdefaults = getattr(obj, '__kwdefaults__', _void) # ... and not None here
2023 (kwdefaults is None or isinstance(kwdefaults, dict)) and
2305 kwdefaults = func.__kwdefaults__
2346 if kwdefaults is not None:
2347 default = kwdefaults.get(name, _empty)
Dtyping.py1758 kwdefaults = func.__kwdefaults__
1759 res = dict(kwdefaults) if kwdefaults else {}
/external/python/cpython3/Misc/
DHISTORY16117 uses ``kwonlydefaults`` instead of ``kwdefaults``.