New in version 3.5.
Coroutine objects are what functions declared with an
The C structure used for coroutine objects.
Return true if ob’s type is
PyCoro_Type; ob must not be
NULL. This function always succeeds.
PyCoro_New(PyFrameObject *frame, PyObject *name, PyObject *qualname)¶
- Return value: New reference.
Create and return a new coroutine object based on the frame object, with
__qualname__set to name and qualname. A reference to frame is stolen by this function. The frame argument must not be