blob: c58e320b9cba3fa860db81504cba314d2e3e00ce [file] [log] [blame]
Guido van Rossumecde7811995-03-28 13:35:14 +00001\chapter{Python Services}
2
3The modules described in this chapter provide a wide range of services
4related to the Python interpreter and its interaction with its
5environment. Here's an overview:
6
7\begin{description}
8
9\item[sys]
10--- Access system specific parameters and functions.
11
12\item[types]
13--- Names for all built-in types.
14
Guido van Rossum7f3b0421997-03-27 14:56:18 +000015\item[UserDict, UserList]
16--- Class wrappers for dictionary and list objects.
17
Guido van Rossume084f0b1997-11-20 21:03:33 +000018\item[operator]
19--- All python's standard operators as built-in functions.
20
Guido van Rossumecde7811995-03-28 13:35:14 +000021\item[traceback]
22--- Print or retrieve a stack traceback.
23
24\item[pickle]
25--- Convert Python objects to streams of bytes and back.
26
27\item[shelve]
28--- Python object persistency.
29
30\item[copy]
31--- Shallow and deep copy operations.
32
33\item[marshal]
34--- Convert Python objects to streams of bytes and back (with
35different constraints).
36
Guido van Rossume084f0b1997-11-20 21:03:33 +000037\item[ni]
38--- New import (obsolete).
39
Guido van Rossumecde7811995-03-28 13:35:14 +000040\item[imp]
41--- Access the implementation of the \code{import} statement.
42
Guido van Rossum3317e631996-07-21 02:22:12 +000043\item[parser]
44--- Retrieve and submit parse trees from and to the runtime support
45environment.
46
Guido van Rossume084f0b1997-11-20 21:03:33 +000047\item[keyword]
48--- Test whether a string is a keyword in the Python language.
49
50\item[code]
51--- Code object services.
52
53\item[pprint]
54--- Data pretty printer.
55
56\item[dis]
57--- Disassembler.
58
Guido van Rossumfc5ee0f1997-04-03 22:43:02 +000059\item[site]
60--- A standard way to reference site-specific modules.
61
Guido van Rossume084f0b1997-11-20 21:03:33 +000062\item[user]
63--- A standard way to reference user-specific modules.
64
Guido van Rossumecde7811995-03-28 13:35:14 +000065\item[__builtin__]
66--- The set of built-in functions.
67
68\item[__main__]
69--- The environment where the top-level script is run.
70
71\end{description}