mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
fix sending tuples to custom generator objects with yield from (closes #21209)
Debugged by Victor.
This commit is contained in:
parent
584f5cbf16
commit
f6e50b4a81
3 changed files with 23 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue