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.

ModuleDescription
codeopCompiles Python code
compileallByte-compiles Python files in a directory
disDisassembler
distutilsDistribution of Python modules (see Chapter 27)
fpectlFloating-point exception control
impProvides access to the implementation of the import statement
keywordTests whether a string is a Python keyword
linecacheRetrieves lines from files
modulefinderFinds modules used by a script
parserAccesses parse trees of Python source code
pickletoolsTools for pickle developers
pkgutilPackage extension utility
pprintPrettyprinter 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.