ID EN
Inspect

getcoroutinelocals

Python 3.11

This function is analogous to getgeneratorlocals(), but works for coroutine objects created by async def functions.

Syntax

PYTHON
inspect.getcoroutinelocals(coroutine)

See Also

getgeneratorlocals() async def