From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/python~3.12/c-api%2Fcoro.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 devdocs/python~3.12/c-api%2Fcoro.html (limited to 'devdocs/python~3.12/c-api%2Fcoro.html') diff --git a/devdocs/python~3.12/c-api%2Fcoro.html b/devdocs/python~3.12/c-api%2Fcoro.html new file mode 100644 index 00000000..a95fa141 --- /dev/null +++ b/devdocs/python~3.12/c-api%2Fcoro.html @@ -0,0 +1,18 @@ +

Coroutine Objects

New in version 3.5.

Coroutine objects are what functions declared with an async keyword return.

+type PyCoroObject
+

The C structure used for coroutine objects.

+
+PyTypeObject PyCoro_Type
+

The type object corresponding to coroutine objects.

+
+int PyCoro_CheckExact(PyObject *ob)
+

Return true if ob’s type is PyCoro_Type; ob must not be NULL. 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 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.

+
+

+ © 2001–2023 Python Software Foundation
Licensed under the PSF License.
+ https://docs.python.org/3.12/c-api/coro.html +

+
-- cgit v1.2.3