GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — cpython/Doc/c-api/coro.rst at main · python/cpython

Expand file tree

/

coro.rst

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
41 lines (23 loc) · 1.02 KB
/

coro.rst

Copy path

File metadata and controls

41 lines (23 loc) · 1.02 KB
Raw
Copy raw file
Download raw file
Edit and raw actions

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.
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.