Logo

上一个主题

Using importlib.metadata

下一个主题

parser --- Access Python parse trees

本页

  • Report a Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.9.23 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
    • Abstract Grammar
    • Node classes
      • Literals
      • Variables
      • Expressions
        • Subscripting
        • Comprehensions
      • Statements
        • Imports
      • Control flow
      • Function and class definitions
      • Async and await
    • ast Helpers
    • Compiler Flags
    • Command-Line Usage
  • 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

上一个主题

Using importlib.metadata

下一个主题

parser --- Access Python parse trees

本页

  • Report a Bug
  • 显示源代码

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • python logo
  • Python »
  • 3.9.23 Documentation »
  • The Python Standard Library »
  • |
© 版权所有 2001-2025, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

最后更新于 8月 10, 2025. Found a bug?
Created using Sphinx 2.4.4.