We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c9dd5 commit 469d1a7Copy full SHA for 469d1a7
1 file changed
Python/ceval.c
@@ -3314,7 +3314,6 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
3314
3315
Finally we push the result of the call.
3316
*/
3317
- PyObject *stack[3];
3318
PyObject *exit_func;
3319
PyObject *exc, *val, *tb, *res;
3320
@@ -3351,10 +3350,9 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
3351
3350
block->b_level--;
3352
}
3353
3354
- stack[0] = exc;
3355
- stack[1] = val;
3356
- stack[2] = tb;
3357
- res = _PyObject_FastCall(exit_func, stack, 3);
+ PyObject *stack[4] = {NULL, exc, val, tb};
+ res = _PyObject_Vectorcall(exit_func, stack + 1,
+ 3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
3358
Py_DECREF(exit_func);
3359
if (res == NULL)
3360
goto error;
0 commit comments