瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • Python 3.1.5 說明文件 »
  • The Python Standard Library »
  • |

30. 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:

  • 30.1. parser — Access Python parse trees
    • 30.1.1. Creating ST Objects
    • 30.1.2. Converting ST Objects
    • 30.1.3. Queries on ST Objects
    • 30.1.4. Exceptions and Error Handling
    • 30.1.5. ST Objects
    • 30.1.6. Example: Emulation of compile()
  • 30.2. ast — Abstract Syntax Trees
    • 30.2.1. Node classes
    • 30.2.2. Abstract Grammar
    • 30.2.3. ast Helpers
  • 30.3. symtable — Access to the compiler’s symbol tables
    • 30.3.1. Generating Symbol Tables
    • 30.3.2. Examining Symbol Tables
  • 30.4. symbol — Constants used with Python parse trees
  • 30.5. token — Constants used with Python parse trees
  • 30.6. keyword — Testing for Python keywords
  • 30.7. tokenize — Tokenizer for Python source
  • 30.8. tabnanny — Detection of ambiguous indentation
  • 30.9. pyclbr — Python class browser support
    • 30.9.1. Class Objects
    • 30.9.2. Function Objects
  • 30.10. py_compile — Compile Python source files
  • 30.11. compileall — Byte-compile Python libraries
    • 30.11.1. Command-line use
    • 30.11.2. Public functions
  • 30.12. dis — Disassembler for Python bytecode
    • 30.12.1. Python Bytecode Instructions
  • 30.13. pickletools — Tools for pickle developers
  • 30.14. distutils — Building and installing Python modules

上個主題

29.6. importlib – An implementation of import

下個主題

30.1. parser — Access Python parse trees

本頁

  • 顯示原始碼

快速搜尋

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python »
  • Python 3.1.5 說明文件 »
  • The Python Standard Library »
  • |
© 版權所有 1990-2025, Python Software Foundation.
The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 8月 10, 2025。
Created using Sphinx 1.8.4.