This document is for an old version of Python that is no longer supported. You should upgrade and read the Python 当前稳定版本的文档.

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • Python 2.7.18 文档 »
  • Python 标准库 »

32. Python 语言服务¶

Python 提供了许多模块来帮助使用 Python 语言。 这些模块支持标记化、解析、语法分析、字节码反汇编以及各种其他工具。

这些模块包括:

  • 32.1. parser — 访问 Python 解析树
    • 32.1.1. 创建 ST 对象
    • 32.1.2. 转换 ST 对象
    • 32.1.3. Queries on ST Objects
    • 32.1.4. 异常和错误处理
    • 32.1.5. ST 对象
    • 32.1.6. 示例: compile() 的模拟
  • 32.2. ast — 抽象语法树
    • 32.2.1. 节点类
    • 32.2.2. 抽象文法
    • 32.2.3. ast 中的辅助函数
  • 32.3. symtable — Access to the compiler’s symbol tables
    • 32.3.1. Generating Symbol Tables
    • 32.3.2. Examining Symbol Tables
  • 32.4. symbol — 与 Python 解析树一起使用的常量
  • 32.5. token — 与Python解析树一起使用的常量
  • 32.6. keyword — 检验Python关键字
  • 32.7. tokenize – 对 Python 代码使用的标记解析器
  • 32.8. tabnanny — 模糊缩进检测
  • 32.9. pyclbr — Python class browser support
    • 32.9.1. 类对象
    • 32.9.2. 函数对象
  • 32.10. py_compile — Compile Python source files
  • 32.11. compileall — Byte-compile Python libraries
    • 32.11.1. Command-line use
    • 32.11.2. Public functions
  • 32.12. dis — Python 字节码反汇编器
    • 32.12.1. Python字节码说明
  • 32.13. pickletools — pickle 开发者工具集

上一个主题

31.7. runpy — Locating and executing Python modules

下一个主题

32.1. parser — 访问 Python 解析树

本页

  • 显示源代码

快速搜索

导航

  • 索引
  • 模块 |
  • 下一页 |
  • 上一页 |
  • Python »
  • Python 2.7.18 文档 »
  • Python 标准库 »
© 版权所有 1990-2020, Python Software Foundation.
Python 软件基金会是一个非盈利组织。 请捐助。
Last updated on 6月 19, 2020. 发现了问题?
使用Sphinx2.3.1 创建。