8000 gh-90370: avoid temporary tuple creation for vararg in AC by skirpichev · Pull Request #126064 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-90370: avoid temporary tuple creation for vararg in AC #126064

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 31, 2024
Prev Previous commit
huh, make clinic doesn't do this
  • Loading branch information
skirpichev committed Oct 28, 2024
commit f17955759d6caae92c57983491462f345f9f4d45
4 changes: 2 additions & 2 deletions Lib/test/clinic.test.c
Original file line number Diff line number Diff line change
Expand Up @@ -4155,7 +4155,7 @@ static PyObject *
test_vararg_and_posonly(PyObject *module, PyObject *const *args, Py_ssize_t nargs)
{
PyObject *return_value = NULL;
Py_ssize_t nvararg = Py_MAX(nargs - 1, 0);
Py_ssize_t nvararg = nargs - 1;
PyObject *a;
PyObject *const *__clinic_args = NULL;

Expand All @@ -4173,7 +4173,7 @@ test_vararg_and_posonly(PyObject *module, PyObject *const *args, Py_ssize_t narg
static PyObject *
test_vararg_and_posonly_impl(PyObject *module, PyObject *a, Py_ssize_t nargs,
PyObject *const *args)
/*[clinic end generated code: output=f0f68154d891dd6d input=9cfa748bbff09877]*/
/*[clinic end generated code: output=dc2dd9483cc0459e input=9cfa748bbff09877]*/

/*[clinic input]
test_vararg
Expand Down
Loading
0