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 ac3974d commit b285594Copy full SHA for b285594
Objects/genobject.c
@@ -364,7 +364,7 @@ gen_send(PyObject *op, PyObject *arg)
364
{
365
PyObject *result;
366
PyGenObject *gen = _PyGen_CAST(op);
367
- if (gen_send_ex(_PyGen_CAST(op), arg, &result) == PYGEN_RETURN) {
+ if (gen_send_ex(gen, arg, &result) == PYGEN_RETURN) {
368
return gen_set_stop_iteration(gen, result);
369
}
370
return result;
0 commit comments