Searched refs:argdefs (Results 1 – 6 of 6) sorted by relevance
/external/python/cpython3/Objects/ |
D | call.c | 304 PyObject *argdefs = PyFunction_GET_DEFAULTS(func); in _PyFunction_FastCallDict() local 321 if (argdefs == NULL && co->co_argcount == nargs) { in _PyFunction_FastCallDict() 324 else if (nargs == 0 && argdefs != NULL in _PyFunction_FastCallDict() 325 && co->co_argcount == PyTuple_GET_SIZE(argdefs)) { in _PyFunction_FastCallDict() 328 args = &PyTuple_GET_ITEM(argdefs, 0); in _PyFunction_FastCallDict() 329 return function_code_fastcall(co, args, PyTuple_GET_SIZE(argdefs), in _PyFunction_FastCallDict() 367 if (argdefs != NULL) { in _PyFunction_FastCallDict() 368 d = &PyTuple_GET_ITEM(argdefs, 0); in _PyFunction_FastCallDict() 369 nd = PyTuple_GET_SIZE(argdefs); in _PyFunction_FastCallDict() 391 PyObject *argdefs = PyFunction_GET_DEFAULTS(func); in _PyFunction_FastCallKeywords() local [all …]
|
/external/python/cpython2/Objects/ |
D | funcobject.c | 488 PyObject *argdefs; in function_call() local 493 argdefs = PyFunction_GET_DEFAULTS(func); in function_call() 494 if (argdefs != NULL && PyTuple_Check(argdefs)) { in function_call() 495 d = &PyTuple_GET_ITEM((PyTupleObject *)argdefs, 0); in function_call() 496 nd = PyTuple_GET_SIZE(argdefs); in function_call()
|
/external/python/cpython2/Doc/library/ |
D | new.rst | 39 .. function:: function(code, globals[, name[, argdefs[, closure]]]) 44 *argdefs* is given, it must be a tuple and will be used to determine the default
|
/external/tensorflow/tensorflow/python/keras/utils/ |
D | generic_utils.py | 288 code, globs, name=code.co_name, argdefs=defaults, closure=closure)
|
/external/python/cpython2/Python/ |
D | ceval.c | 4425 PyObject *argdefs = PyFunction_GET_DEFAULTS(func); in fast_function() local 4431 if (argdefs == NULL && co->co_argcount == n && nk==0 && in fast_function() 4463 if (argdefs != NULL) { in fast_function() 4464 d = &PyTuple_GET_ITEM(argdefs, 0); in fast_function() 4465 nd = Py_SIZE(argdefs); in fast_function()
|
/external/tensorflow/tensorflow/python/ops/distributions/ |
D | distribution.py | 106 name=fn.__name__, argdefs=fn.__defaults__,
|