Python 語言服務¶
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.
這些模組包括:
ast
--- 抽象語法樹 (Abstract Syntax Trees)symtable
--- 存取編譯器的符號表token
--- 與 Python 剖析樹一起使用的常數keyword
--- 檢驗 Python 關鍵字tokenize
--- Tokenizer for Python sourcetabnanny
--- 偵測不良縮排pyclbr
--- Python 模組瀏覽器支援py_compile
— 編譯 Python 來源檔案compileall
--- 位元組編譯 Python 函式庫dis
--- Python bytecode 的反組譯器pickletools
--- pickle 開發者的工具