Search notes:

Python: symbol table

See also

A variable is an entry in a symbol table that is bound to an object.
A symbol table is created for every function when it is called.
The def statement puts the defined function name into the current symbol table.
locals() returns a dict that represents the current symbol table.
Each module has its own private symbol table.
The CPython source file Include/symtable.h.

Index