ID EN
Inspect

CO_COROUTINE

Python 3.11

The flag is set when the code object is a coroutine function. When the code object is executed it returns a coroutine object. See PEP 492 for more details.

Syntax

PYTHON
inspect.CO_COROUTINE