Coroutine Objects¶
New in version 3.5.
Coroutine objects are what functions declared with anasync keywordreturn.
- typePyCoroObject¶
The C structure used for coroutine objects.
- PyTypeObjectPyCoro_Type¶
The type object corresponding to coroutine objects.
- intPyCoro_CheckExact(PyObject*ob)¶
Return true ifob’s type is
PyCoro_Type;ob must not beNULL.This function always succeeds.
- PyObject*PyCoro_New(PyFrameObject*frame,PyObject*name,PyObject*qualname)¶
- Return value: New reference.
Create and return a new coroutine object based on theframe object,with
__name__and__qualname__set toname andqualname.A reference toframe is stolen by this function. Theframe argumentmust not beNULL.