summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/gen.rst
diff options
context:
space:
mode:
authorVladimir Matveev <vladima@fb.com>2020-10-12 19:10:42 (GMT)
committerGitHub <noreply@github.com>2020-10-12 19:10:42 (GMT)
commit24a54c0bd48d9f6f1a1289ca57afb381bc4b280e (patch)
treeb477987c2774d4cc41a42c85399c22cde0880305 /Doc/c-api/gen.rst
parentabe244c458f2b1a727af4d2a56f71813e501bcb4 (diff)
downloadcpython-24a54c0bd48d9f6f1a1289ca57afb381bc4b280e.zip
cpython-24a54c0bd48d9f6f1a1289ca57afb381bc4b280e.tar.gz
cpython-24a54c0bd48d9f6f1a1289ca57afb381bc4b280e.tar.bz2
Delete PyGen_Send (#22663)
Diffstat (limited to 'Doc/c-api/gen.rst')
-rw-r--r--Doc/c-api/gen.rst10
1 files changed, 0 insertions, 10 deletions
diff --git a/Doc/c-api/gen.rst b/Doc/c-api/gen.rst
index 600f534..7441092 100644
--- a/Doc/c-api/gen.rst
+++ b/Doc/c-api/gen.rst
@@ -42,13 +42,3 @@ than explicitly calling :c:func:`PyGen_New` or :c:func:`PyGen_NewWithQualName`.
with ``__name__`` and ``__qualname__`` set to *name* and *qualname*.
A reference to *frame* is stolen by this function. The *frame* argument
must not be ``NULL``.
-
-.. c:function:: PySendResult PyGen_Send(PyGenObject *gen, PyObject *arg, PyObject **presult)
-
- Sends the *arg* value into the generator *gen*. Coroutine objects
- are also allowed to be as the *gen* argument but they need to be
- explicitly casted to PyGenObject*. Returns:
-
- - ``PYGEN_RETURN`` if generator returns. Return value is returned via *presult*.
- - ``PYGEN_NEXT`` if generator yields. Yielded value is returned via *presult*.
- - ``PYGEN_ERROR`` if generator has raised and exception. *presult* is set to ``NULL``.