summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVladimir Matveev <vladima@fb.com>2020-10-13 17:26:51 (GMT)
committerGitHub <noreply@github.com>2020-10-13 17:26:51 (GMT)
commitcfb0f57ff876ab3d04ff144f19eda58844981643 (patch)
tree412498daac6bbcd044cfe5b208cc46859ea8d18c /Doc
parent66c28f50c76e4f23af7146e0e580457c5fd6bde7 (diff)
downloadcpython-cfb0f57ff876ab3d04ff144f19eda58844981643.zip
cpython-cfb0f57ff876ab3d04ff144f19eda58844981643.tar.gz
cpython-cfb0f57ff876ab3d04ff144f19eda58844981643.tar.bz2
bpo-41756: Export PyGen_Send and wrap it in if-defs (#22677)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/iter.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/c-api/iter.rst b/Doc/c-api/iter.rst
index a068a43..68df6f6 100644
--- a/Doc/c-api/iter.rst
+++ b/Doc/c-api/iter.rst
@@ -50,6 +50,8 @@ something like this::
The enum value used to represent different results of :c:func:`PyIter_Send`.
+ .. versionadded:: 3.10
+
.. c:function:: PySendResult PyIter_Send(PyObject *iter, PyObject *arg, PyObject **presult)
@@ -58,3 +60,5 @@ something like this::
- ``PYGEN_RETURN`` if iterator returns. Return value is returned via *presult*.
- ``PYGEN_NEXT`` if iterator yields. Yielded value is returned via *presult*.
- ``PYGEN_ERROR`` if iterator has raised and exception. *presult* is set to ``NULL``.
+
+ .. versionadded:: 3.10