gh-111489: Remove _PyTuple_FromArray() alias (#139973)
Replace _PyTuple_FromArray() with PyTuple_FromArray(). Remove pycore_tuple.h includes.
This commit is contained in:
@@ -4341,7 +4341,7 @@ test_vararg_and_posonly(PyObject *module, PyObject *const *args, Py_ssize_t narg
|
||||
goto exit;
|
||||
}
|
||||
a = args[0];
|
||||
__clinic_args = _PyTuple_FromArray(args + 1, nargs - 1);
|
||||
__clinic_args = PyTuple_FromArray(args + 1, nargs - 1);
|
||||
if (__clinic_args == NULL) {
|
||||
goto exit;
|
||||
}
|
||||
@@ -4356,7 +4356,7 @@ exit:
|
||||
|
||||
static PyObject *
|
||||
test_vararg_and_posonly_impl(PyObject *module, PyObject *a, PyObject *args)
|
||||
/*[clinic end generated code: output=0c11c475e240869e input=2c49a482f68545c0]*/
|
||||
/*[clinic end generated code: output=83cbe9554d04add2 input=2c49a482f68545c0]*/
|
||||
|
||||
/*[clinic input]
|
||||
test_vararg
|
||||
@@ -4421,7 +4421,7 @@ test_vararg(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject
|
||||
}
|
||||
a = fastargs[0];
|
||||
__clinic_args = nargs > 1
|
||||
? _PyTuple_FromArray(args + 1, nargs - 1)
|
||||
? PyTuple_FromArray(args + 1, nargs - 1)
|
||||
: PyTuple_New(0);
|
||||
if (__clinic_args == NULL) {
|
||||
goto exit;
|
||||
@@ -4437,7 +4437,7 @@ exit:
|
||||
|
||||
static PyObject *
|
||||
test_vararg_impl(PyObject *module, PyObject *a, PyObject *args)
|
||||
/*[clinic end generated code: output=17ba625cdd0369c1 input=7448995636d9186a]*/
|
||||
/*[clinic end generated code: output=d773f7b54e61f73a input=7448995636d9186a]*/
|
||||
|
||||
/*[clinic input]
|
||||
test_vararg_with_default
|
||||
@@ -4514,7 +4514,7 @@ test_vararg_with_default(PyObject *module, PyObject *const *args, Py_ssize_t nar
|
||||
}
|
||||
skip_optional_kwonly:
|
||||
__clinic_args = nargs > 1
|
||||
? _PyTuple_FromArray(args + 1, nargs - 1)
|
||||
? PyTuple_FromArray(args + 1, nargs - 1)
|
||||
: PyTuple_New(0);
|
||||
if (__clinic_args == NULL) {
|
||||
goto exit;
|
||||
@@ -4531,7 +4531,7 @@ exit:
|
||||
static PyObject *
|
||||
test_vararg_with_default_impl(PyObject *module, PyObject *a, PyObject *args,
|
||||
int b)
|
||||
/*[clinic end generated code: output=3f2b06ab08d5d0be input=3a0f9f557ce1f712]*/
|
||||
/*[clinic end generated code: output=d25e56802c197344 input=3a0f9f557ce1f712]*/
|
||||
|
||||
/*[clinic input]
|
||||
test_vararg_with_only_defaults
|
||||
@@ -4612,7 +4612,7 @@ test_vararg_with_only_defaults(PyObject *module, PyObject *const *args, Py_ssize
|
||||
}
|
||||
c = fastargs[1];
|
||||
skip_optional_kwonly:
|
||||
__clinic_args = _PyTuple_FromArray(args, nargs);
|
||||
__clinic_args = PyTuple_FromArray(args, nargs);
|
||||
if (__clinic_args == NULL) {
|
||||
goto exit;
|
||||
}
|
||||
@@ -4628,7 +4628,7 @@ exit:
|
||||
static PyObject *
|
||||
test_vararg_with_only_defaults_impl(PyObject *module, PyObject *args, int b,
|
||||
PyObject *c)
|
||||
/*[clinic end generated code: output=f46666f0b1bf86b9 input=6983e66817f82924]*/
|
||||
/*[clinic end generated code: output=7366943a7df42e05 input=6983e66817f82924]*/
|
||||
|
||||
/*[clinic input]
|
||||
test_paramname_module
|
||||
|
||||
Reference in New Issue
Block a user