mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-41756: Export PyGen_Send and wrap it in if-defs (#22677)
This commit is contained in:
parent
66c28f50c7
commit
cfb0f57ff8
3 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue