summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-04-14 03:52:01 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-04-14 03:52:01 (GMT)
commitf6e50b4a811477206d1c252a531c31029ea93866 (patch)
treecd2487f0cdeef93232b336fa63c28f0ed42cc2ac /Python/ceval.c
parent584f5cbf16980f21c58bf7ce7e451e022355fa3d (diff)
downloadcpython-f6e50b4a811477206d1c252a531c31029ea93866.zip
cpython-f6e50b4a811477206d1c252a531c31029ea93866.tar.gz
cpython-f6e50b4a811477206d1c252a531c31029ea93866.tar.bz2
fix sending tuples to custom generator objects with yield from (closes #21209)
Debugged by Victor.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 5db88be..1cc3c94 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1902,7 +1902,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
if (v == Py_None)
retval = Py_TYPE(reciever)->tp_iternext(reciever);
else
- retval = _PyObject_CallMethodId(reciever, &PyId_send, "O", v);
+ retval = _PyObject_CallMethodIdObjArgs(reciever, &PyId_send, v, NULL);
}
Py_DECREF(v);
if (retval == NULL) {