summaryrefslogtreecommitdiffstats
path: root/Doc
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
parentabe244c458f2b1a727af4d2a56f71813e501bcb4 (diff)
downloadcpython-24a54c0bd48d9f6f1a1289ca57afb381bc4b280e.zip
cpython-24a54c0bd48d9f6f1a1289ca57afb381bc4b280e.tar.gz
cpython-24a54c0bd48d9f6f1a1289ca57afb381bc4b280e.tar.bz2
Delete PyGen_Send (#22663)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/gen.rst10
-rw-r--r--Doc/data/refcounts.dat5
-rw-r--r--Doc/whatsnew/3.10.rst2
3 files changed, 1 insertions, 16 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``.
diff --git a/Doc/data/refcounts.dat b/Doc/data/refcounts.dat
index 87ce5d0..d01e99c 100644
--- a/Doc/data/refcounts.dat
+++ b/Doc/data/refcounts.dat
@@ -959,11 +959,6 @@ PyGen_NewWithQualName:PyFrameObject*:frame:0:
PyGen_NewWithQualName:PyObject*:name:0:
PyGen_NewWithQualName:PyObject*:qualname:0:
-PyGen_Send:int:::
-PyGen_Send:PyGenObject*:gen:0:
-PyGen_Send:PyObject*:arg:0:
-PyGen_Send:PyObject**:presult:+1:
-
PyCoro_CheckExact:int:::
PyCoro_CheckExact:PyObject*:ob:0:
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst
index 1c50978..c8ddcd2 100644
--- a/Doc/whatsnew/3.10.rst
+++ b/Doc/whatsnew/3.10.rst
@@ -314,7 +314,7 @@ New Features
search function.
(Contributed by Hai Shi in :issue:`41842`.)
-* The :c:func:`PyIter_Send` and :c:func:`PyGen_Send` functions were added to allow
+* The :c:func:`PyIter_Send` function was added to allow
sending value into iterator without raising ``StopIteration`` exception.
(Contributed by Vladimir Matveev in :issue:`41756`.)