ID EN
Inspect

CO_ITERABLE_COROUTINE

Python 3.11

The flag is used to transform generators into generator-based coroutines. Generator objects with this flag can be used in await expression, and can yield from coroutine objects. See PEP 492 for more details.

Syntax

PYTHON
inspect.CO_ITERABLE_COROUTINE