Language
symbol — Constants used with Python parse trees
Source code: Lib/symbol.py
symtable — Access to the compiler’s symbol tables
Source code: Lib/symtable.py
ast — Abstract Syntax Trees
Source code: Lib/ast.py
parser — Access Python parse trees
The
module provides an interface to Python’s internal parser and byte-code compiler. The primary purpose for this interface is to allow Python code to edit the parse tree of a Python expression and create executable code from this. This is better than trying to parse and modify an arbitrary Python code fragment as a string because parsing is performed in a manner identical to the code forming the application. It is also faster.
parser
token — Constants used with Python parse trees
Source code: Lib/token.py
keyword — Testing for Python keywords
Source code: Lib/keyword.py
tabnanny — Detection of ambiguous indentation
Source code: Lib/tabnanny.py
tokenize — Tokenizer for Python source
Source code: Lib/tokenize.py
pickletools — Tools for pickle developers
Source code: Lib/pickletools.py
dis — Disassembler for Python bytecode
Source code: Lib/dis.py
compileall — Byte-compile Python libraries
Source code: Lib/compileall.py
py_compile — Compile Python source files
Source code: Lib/py_compile.py
pyclbr — Python module browser support
Source code: Lib/pyclbr.py