pydoc > symtable

📘 NAME

symtable - Interface to the compiler's internal symbol tables

🚀 Quick Reference

Use CaseCommandDescription
Obtain top-level symbol table from source codesymtable(code, filename, compile_type)Returns the top-level SymbolTable for the source code
List all symbols in a tabletable.get_symbols()Returns a list of Symbol instances for names in the table
Check if a symbol is localsymbol.is_local()Returns True if the symbol is local
Get nested symbol tablestable.get_children()Returns a list of the nested symbol tables

📚 MODULE REFERENCE

https://docs.python.org/3.10/library/symtable.html

The following documentation is automatically generated from the Python source files. It may be incomplete, incorrect or include features that are considered implementation detail and may vary between Python implementations. When in doubt, consult the module reference at the location listed above.

📦 CLASSES

builtins.object

🏛️ class Class(SymbolTable)

Class(raw_table, filename)

Method resolution order: Class → SymbolTable → builtins.object

🧩 Methods defined here

📦 Methods inherited from SymbolTable

📁 Data descriptors inherited from SymbolTable

🛠️ class Function(SymbolTable)

Function(raw_table, filename)

Method resolution order: Function → SymbolTable → builtins.object

🧩 Methods defined here

📦 Methods inherited from SymbolTable

📁 Data descriptors inherited from SymbolTable

🔣 class Symbol(builtins.object)

Symbol(name, flags, namespaces=None, *, module_scope=False)

🧩 Methods defined here

📁 Data descriptors defined here

🗂️ class SymbolTable(builtins.object)

SymbolTable(raw_table, filename)

🧩 Methods defined here

📁 Data descriptors defined here

🔧 FUNCTIONS

🔗 symtable

symtable(code, filename, compile_type)

Return the toplevel SymbolTable for the source code.

filename is the name of the file with the code and compile_type is the compile() mode argument.

📊 DATA

__all__ = ['symtable', 'SymbolTable', 'Class', 'Function', 'Symbol']

📁 FILE

/usr/lib/python3.10/symtable.py

symtable
📘 NAME 🚀 Quick Reference 📚 MODULE REFERENCE 📦 CLASSES
🏛️ class Class(SymbolTable) 🛠️ class Function(SymbolTable) 🔣 class Symbol(builtins.object) 🗂️ class SymbolTable(builtins.object)
🔧 FUNCTIONS
🔗 symtable
📊 DATA 📁 FILE

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 16:52 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^