You are here : python_3Built-in Functionslocals

locals() - Built-in Functions

Update and return a dictionary representing the current local symbol table.
Free variables are returned by locals() when it is called in function
blocks, but not in class blocks.


Syntax

locals()


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference