mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Delete PyGen_Send (#22663)
This commit is contained in:
parent
abe244c458
commit
24a54c0bd4
7 changed files with 21 additions and 64 deletions
|
@ -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``.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue