Language Articles

ast — Abstract Syntax Trees

Source code: Lib/ast.py

compileall — Byte-compile Python libraries

Source code: Lib/compileall.py

dis — Disassembler for Python bytecode

Source code: Lib/dis.py

keyword — Testing for Python keywords

Source code: Lib/keyword.py

parser — Access Python parse trees

The parser 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.

pickletools — Tools for pickle developers

Source code: Lib/pickletools.py

py_compile — Compile Python source files

Source code: Lib/py_compile.py

pyclbr — Python module browser support

Source code: Lib/pyclbr.py

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

tabnanny — Detection of ambiguous indentation

Source code: Lib/tabnanny.py

token — Constants used with Python parse trees

Source code: Lib/token.py

tokenize — Tokenizer for Python source

Source code: Lib/tokenize.py