/
githubmirror
/
cpython
Обзор
Документация
Войти
/
githubmirror
/
cpython
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Doc/c-api/coro.rst
41 строка
1 KB
sobolevn
gh-150671: Deprecate `PyAsyncGen_New`, `PyCoro_New`, `PyGen_New`, `PyGen_NewWithQualName` functions (#150672)
10 июн 2026, 15:57
Не верифицирован
10 июн 2026, 15:57
44a533f
Код
Авторство
О чём код?
.. highlight:: c .. _coro-objects: Coroutine Objects ----------------- .. versionadded:: 3.5 Coroutine objects are what functions declared with an ``async`` keyword return. .. c:type:: PyCoroObject The C structure used for coroutine objects. .. c:var:: PyTypeObject PyCoro_Type The type object corresponding to coroutine objects. .. c:function:: int PyCoro_CheckExact(PyObject *ob) Return true if *ob*'s type is :c:type:`PyCoro_Type`; *ob* must not be ``NULL``. This function always succeeds. .. c:function:: PyObject* PyCoro_New(PyFrameObject *frame, PyObject *name, PyObject *qualname) Create and return a new coroutine object based on the *frame* object, 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``. .. deprecated-removed:: 3.16 3.18 This function has not been used since 3.10. It is also impossible to construct a proper *frame* object to call this function.