Skip to content

Commit 5ab9250

Browse files
author
Anselm Kruis
committed
Stackless issue python#133: make the fast-call functions Stackless aware.
Add Stackless support to call_function_tail().
1 parent addabb8 commit 5ab9250

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Objects/abstract.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2308,12 +2308,14 @@ call_function_tail(PyObject *callable, PyObject *args)
23082308
if (args == NULL)
23092309
return NULL;
23102310

2311+
STACKLESS_PROMOTE_ALL();
23112312
if (!PyTuple_Check(args)) {
23122313
result = _PyObject_FastCall(callable, &args, 1, NULL);
23132314
}
23142315
else {
23152316
result = PyObject_Call(callable, args, NULL);
23162317
}
2318+
STACKLESS_ASSERT();
23172319

23182320
Py_DECREF(args);
23192321
return result;

0 commit comments

Comments
 (0)