ID EN
Inspect

CO_NEWLOCALS

Python 3.11

If set, a new dict will be created for the frame’s f_locals when the code object is executed.

Syntax

PYTHON
inspect.CO_NEWLOCALS

See Also

f_locals