summaryrefslogtreecommitdiffstats
path: root/Objects/genobject.c
diff options
context:
space:
mode:
authorVladimir Matveev <vladima@fb.com>2020-10-10 00:15:15 (GMT)
committerGitHub <noreply@github.com>2020-10-10 00:15:15 (GMT)
commit037245c5ac46c3436f617a1f5d965929754be239 (patch)
treece2a797b165e846d59e53ba5d530413cb573a8aa /Objects/genobject.c
parent9975cc5008c795e069ce11e2dbed2110cc12e74e (diff)
downloadcpython-037245c5ac46c3436f617a1f5d965929754be239.zip
cpython-037245c5ac46c3436f617a1f5d965929754be239.tar.gz
cpython-037245c5ac46c3436f617a1f5d965929754be239.tar.bz2
bpo-41756: Add PyIter_Send function (#22443)
Diffstat (limited to 'Objects/genobject.c')
-rw-r--r--Objects/genobject.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/Objects/genobject.c b/Objects/genobject.c
index f0943ae..eb134eb 100644
--- a/Objects/genobject.c
+++ b/Objects/genobject.c
@@ -308,12 +308,6 @@ gen_send(PyGenObject *gen, PyObject *arg)
return gen_send_ex(gen, arg, 0, 0);
}
-PyObject *
-_PyGen_Send(PyGenObject *gen, PyObject *arg)
-{
- return gen_send(gen, arg);
-}
-
PyDoc_STRVAR(close_doc,
"close() -> raise GeneratorExit inside generator.");
@@ -1012,7 +1006,7 @@ PyDoc_STRVAR(coro_close_doc,
"close() -> raise GeneratorExit inside coroutine.");
static PyMethodDef coro_methods[] = {
- {"send",(PyCFunction)_PyGen_Send, METH_O, coro_send_doc},
+ {"send",(PyCFunction)gen_send, METH_O, coro_send_doc},
{"throw",(PyCFunction)gen_throw, METH_VARARGS, coro_throw_doc},
{"close",(PyCFunction)gen_close, METH_NOARGS, coro_close_doc},
{NULL, NULL} /* Sentinel */