Python Services
The following modules provide additional services related to the execution of the Python interpreter. Many of these modules are related to parsing and compilation of Python source code.
Module | Description |
---|---|
codeop | Compiles Python code |
compileall | Byte-compiles Python files in a directory |
dis | Disassembler |
distutils | Distribution of Python modules (see Chapter 27) |
fpectl | Floating-point exception control |
imp | Provides access to the implementation of the import statement |
keyword | Tests whether a string is a Python keyword |
linecache | Retrieves lines from files |
modulefinder | Finds modules used by a script |
parser | Accesses parse trees of Python source code |
pickletools | Tools for pickle developers |
pkgutil | Package extension utility |
pprint | Prettyprinter for objects |
pyclbr |
Get Python: Essential Reference, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.