summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index b9b21d1..75eaa81 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -4592,6 +4592,10 @@ PyEval_CallObjectWithKeywords(PyObject *func, PyObject *arg, PyObject *kw)
#endif
if (arg == NULL) {
+ if (kw == NULL) {
+ return _PyObject_FastCall(func, NULL, 0, 0);
+ }
+
arg = PyTuple_New(0);
if (arg == NULL)
return NULL;