_interpreters.call
id: object
callable: object
- args as args_obj: object(subclass_of='&PyTuple_Type', c_default='NULL') = ()
- kwargs as kwargs_obj: object(subclass_of='&PyDict_Type', c_default='NULL') = {}
+ args: object(subclass_of='&PyTuple_Type', c_default='NULL') = ()
+ kwargs: object(subclass_of='&PyDict_Type', c_default='NULL') = {}
*
preserve_exc: bool = False
restrict as restricted: bool = False
static PyObject *
_interpreters_call_impl(PyObject *module, PyObject *id, PyObject *callable,
- PyObject *args_obj, PyObject *kwargs_obj,
- int preserve_exc, int restricted)
-/*[clinic end generated code: output=983ee27b3c43f6ef input=77590fdb3f519d65]*/
+ PyObject *args, PyObject *kwargs, int preserve_exc,
+ int restricted)
+/*[clinic end generated code: output=b7a4a27d72df3ebc input=b026d0b212a575e6]*/
{
PyThreadState *tstate = _PyThreadState_GET();
int reqready = 1;
}
struct interp_call call = {0};
- if (_interp_call_pack(tstate, &call, callable, args_obj, kwargs_obj) < 0) {
+ if (_interp_call_pack(tstate, &call, callable, args, kwargs) < 0) {
return NULL;
}
/*[clinic input]
_interpreters.get_config
- id as idobj: object
+ id: object
*
restrict as restricted: bool = False
[clinic start generated code]*/
static PyObject *
-_interpreters_get_config_impl(PyObject *module, PyObject *idobj,
- int restricted)
-/*[clinic end generated code: output=63f81d35c2fe1387 input=aa38d50f534eb3c5]*/
+_interpreters_get_config_impl(PyObject *module, PyObject *id, int restricted)
+/*[clinic end generated code: output=56773353b9b7224a input=59519a01c22d96d1]*/
{
- if (idobj == Py_None) {
- idobj = NULL;
+ if (id == Py_None) {
+ id = NULL;
}
int reqready = 0;
PyInterpreterState *interp = \
- resolve_interp(idobj, restricted, reqready, "get the config of");
+ resolve_interp(id, restricted, reqready, "get the config of");
if (interp == NULL) {
return NULL;
}
static PyObject *
_interpreters_call_impl(PyObject *module, PyObject *id, PyObject *callable,
- PyObject *args_obj, PyObject *kwargs_obj,
- int preserve_exc, int restricted);
+ PyObject *args, PyObject *kwargs, int preserve_exc,
+ int restricted);
static PyObject *
_interpreters_call(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 2;
PyObject *id;
PyObject *callable;
- PyObject *args_obj = NULL;
- PyObject *kwargs_obj = NULL;
+ PyObject *__clinic_args = NULL;
+ PyObject *__clinic_kwargs = NULL;
int preserve_exc = 0;
int restricted = 0;
_PyArg_BadArgument("call", "argument 'args'", "tuple", args[2]);
goto exit;
}
- args_obj = args[2];
+ __clinic_args = args[2];
if (!--noptargs) {
goto skip_optional_pos;
}
_PyArg_BadArgument("call", "argument 'kwargs'", "dict", args[3]);
goto exit;
}
- kwargs_obj = args[3];
+ __clinic_kwargs = args[3];
if (!--noptargs) {
goto skip_optional_pos;
}
goto exit;
}
skip_optional_kwonly:
- return_value = _interpreters_call_impl(module, id, callable, args_obj, kwargs_obj, preserve_exc, restricted);
+ return_value = _interpreters_call_impl(module, id, callable, __clinic_args, __clinic_kwargs, preserve_exc, restricted);
exit:
return return_value;
{"get_config", _PyCFunction_CAST(_interpreters_get_config), METH_FASTCALL|METH_KEYWORDS, _interpreters_get_config__doc__},
static PyObject *
-_interpreters_get_config_impl(PyObject *module, PyObject *idobj,
- int restricted);
+_interpreters_get_config_impl(PyObject *module, PyObject *id, int restricted);
static PyObject *
_interpreters_get_config(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames)
#undef KWTUPLE
PyObject *argsbuf[2];
Py_ssize_t noptargs = nargs + (kwnames ? PyTuple_GET_SIZE(kwnames) : 0) - 1;
- PyObject *idobj;
+ PyObject *id;
int restricted = 0;
args = _PyArg_UnpackKeywords(args, nargs, NULL, kwnames, &_parser,
if (!args) {
goto exit;
}
- idobj = args[0];
+ id = args[0];
if (!noptargs) {
goto skip_optional_kwonly;
}
goto exit;
}
skip_optional_kwonly:
- return_value = _interpreters_get_config_impl(module, idobj, restricted);
+ return_value = _interpreters_get_config_impl(module, id, restricted);
exit:
return return_value;
exit:
return return_value;
}
-/*[clinic end generated code: output=cf3f54caaa2dd6a2 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=c80f73761f860f6c input=a9049054013a1b77]*/