协程对象

    协程对象是使用 关键字声明的函数返回的。

    PyCoroObject

    PyTypeObject

    与协程对象对应的类型对​​象。

    Return true if ob’s type is PyCoro_Type; ob must not be NULL.

    (PyFrameObject **frame, name*, PyObject qualname*)

    Create and return a new coroutine object based on the frame object, with __name__ and set to name and qualname. A reference to frame is stolen by this function. The frame argument must not be NULL.