ID EN
Inspect

CO_NESTED

Python 3.11

The flag is set when the code object is a nested function.

Syntax

PYTHON
inspect.CO_NESTED