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

  • Generator Objects
  • Context Variables Objects
  • Report a bug
  • Improve this page
  • Show source
  • index
  • modules
  • Python
  • 3.15.2 documentation
  • Python/C API reference manual
  • Concrete Objects Layer
  • Coroutine Objects

This view

  • Original page
  • New address

GeezerVison is showing docs.python.org — Coroutine Objects

Coroutine Objects¶

Added 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.

© Copyright 2001 Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Last updated on Nov 12, 2026 (08:53 UTC). Found a bug?
Created using Sphinx 9.1.1.
You are visitor 01402503 — 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.