This document is for an old version of Python that is no longer supported. You should upgrade, and read the Python documentation for the current stable release.

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python Β»
  • 3.7.17 Documentation Β»
  • The Python Standard Library Β»
  • |

Python Language ServicesΒΆ

Python provides a number of modules to assist in working with the Python language. These modules support tokenizing, parsing, syntax analysis, bytecode disassembly, and various other facilities.

These modules include:

  • parser β€” Access Python parse trees
    • Creating ST Objects
    • Converting ST Objects
    • Queries on ST Objects
    • Exceptions and Error Handling
    • ST Objects
    • Example: Emulation of compile()
  • ast β€” Abstract Syntax Trees
    • Node classes
    • Abstract Grammar
    • ast Helpers
  • symtable β€” Access to the compiler’s symbol tables
    • Generating Symbol Tables
    • Examining Symbol Tables
  • symbol β€” Constants used with Python parse trees
  • token β€” Constants used with Python parse trees
  • keyword β€” Testing for Python keywords
  • tokenize β€” Tokenizer for Python source
    • Tokenizing Input
    • Command-Line Usage
    • Examples
  • tabnanny β€” Detection of ambiguous indentation
  • pyclbr β€” Python module browser support
    • Function Objects
    • Class Objects
  • py_compile β€” Compile Python source files
  • compileall β€” Byte-compile Python libraries
    • Command-line use
    • Public functions
  • dis β€” Disassembler for Python bytecode
    • Bytecode analysis
    • Analysis functions
    • Python Bytecode Instructions
    • Opcode collections
  • pickletools β€” Tools for pickle developers
    • Command line usage
      • Command line options
    • Programmatic Interface

Previous topic

importlib β€” The implementation of import

Next topic

parser β€” Access Python parse trees

This Page

  • Report a Bug
  • Show Source

Navigation

  • index
  • modules |
  • next |
  • previous |
  • Python Β»
  • 3.7.17 Documentation Β»
  • The Python Standard Library Β»
  • |
Β© Copyright 2001-2025, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.
Last updated on Apr 16, 2025. Found a bug?
Created using Sphinx 2.3.1.