Lines Matching refs:args

13                     PyObject *const *args, Py_ssize_t nargs,
118 PyObject *const *args, size_t nargsf,
130 assert(nargs == 0 || args != NULL);
136 return _PyObject_MakeTpCall(tstate, callable, args, nargs, kwargs);
141 res = func(callable, args, nargsf, NULL);
147 args, nargs,
161 PyObject_VectorcallDict(PyObject *callable, PyObject *const *args,
165 return _PyObject_FastCallDictTstate(tstate, callable, args, nargsf, kwargs);
171 PyObject *const *args, Py_ssize_t nargs,
175 assert(nargs == 0 || args != NULL);
188 PyObject *argstuple = _PyTuple_FromArray(args, nargs);
199 assert(args != NULL);
200 kwdict = _PyStack_AsDict(args + nargs, keywords);
249 PyObject *const *args;
251 args = _PyStack_UnpackDict(tstate,
254 if (args == NULL) {
257 PyObject *result = func(callable, args,
259 _PyStack_UnpackDict_Free(args, nargs, kwnames);
295 PyObject_Vectorcall(PyObject *callable, PyObject *const *args,
300 args, nargsf, kwnames);
305 _PyObject_FastCall(PyObject *func, PyObject *const *args, Py_ssize_t nargs)
308 return _PyObject_FastCallTstate(tstate, func, args, nargs);
314 PyObject *args, PyObject *kwargs)
323 assert(PyTuple_Check(args));
328 return _PyVectorcall_Call(tstate, vector_func, callable, args, kwargs);
343 result = (*call)(callable, args, kwargs);
352 PyObject_Call(PyObject *callable, PyObject *args, PyObject *kwargs)
355 return _PyObject_Call(tstate, callable, args, kwargs);
360 PyCFunction_Call(PyObject *callable, PyObject *args, PyObject *kwargs)
363 return _PyObject_Call(tstate, callable, args, kwargs);
372 PyObject **args = _args + 1; // For PY_VECTORCALL_ARGUMENTS_OFFSET
373 args[0] = arg;
376 return _PyObject_VectorcallTstate(tstate, func, args, nargsf, NULL);
403 The args must be a tuple or NULL. The kwargs must be a dict or NULL. */
406 PyObject *args, PyObject *kwargs)
416 if (args != NULL && !PyTuple_Check(args)) {
428 if (args == NULL) {
432 return _PyObject_Call(tstate, callable, args, kwargs);
438 PyObject_CallObject(PyObject *callable, PyObject *args)
442 if (args == NULL) {
445 if (!PyTuple_Check(args)) {
450 return _PyObject_Call(tstate, callable, args, NULL);
454 /* Call callable(obj, *args, **kwargs). */
457 PyObject *obj, PyObject *args, PyObject *kwargs)
459 assert(PyTuple_Check(args));
464 Py_ssize_t argcount = PyTuple_GET_SIZE(args);
479 _PyTuple_ITEMS(args),
529 PyObject *args = stack[0];
531 _PyTuple_ITEMS(args),
532 PyTuple_GET_SIZE(args),
829 PyObject_VectorcallMethod(PyObject *name, PyObject *const *args,
833 assert(args != NULL);
838 /* Use args[0] as "self" argument */
839 int unbound = _PyObject_GetMethod(args[0], name, &callable);
846 * that would be interpreted as allowing to change args[-1] */
851 * args[-1] in the onward call is args[0] here. */
852 args++;
856 args, nargsf, kwnames);
946 /* Convert (args, nargs, kwargs: dict) into a (stack, nargs, kwnames: tuple).
960 PyObject *const *args, Py_ssize_t nargs,
971 Py_ssize_t maxnargs = PY_SSIZE_T_MAX / sizeof(args[0]) - 1;
978 PyObject **stack = PyMem_Malloc((1 + nargs + nkwargs) * sizeof(args[0]));
994 Py_INCREF(args[i]);
995 stack[i] = args[i];