Pythons språktjänster¶
Python tillhandahåller ett antal moduler som underlättar arbetet med Python-språket. Dessa moduler stöder tokenisering, tolkning, syntaxanalys, bytecode-disassemblering och olika andra funktioner.
Dessa moduler inkluderar:
ast— Abstract syntax treessymtable— Access to the compiler’s symbol tablestoken— Constants used with Python parse treeskeyword— Testing for Python keywordstokenize— Tokenizer for Python sourcetabnanny— Detection of ambiguous indentationpyclbr— Python module browser supportpy_compile— Compile Python source filescompileall— Byte-compile Python librariesdis— Disassembler for Python bytecodepickletools— Tools for pickle developers