blob: 777e48ec876a39db7da1128dfa60049cf3443ca7 [file] [log] [blame]
Guido van Rossumecde7811995-03-28 13:35:14 +00001\chapter{Python Services}
Fred Drakeaf0bfbe1998-02-18 15:39:15 +00002\label{python}
Guido van Rossumecde7811995-03-28 13:35:14 +00003
4The modules described in this chapter provide a wide range of services
5related to the Python interpreter and its interaction with its
6environment. Here's an overview:
7
8\begin{description}
9
10\item[sys]
11--- Access system specific parameters and functions.
12
13\item[types]
14--- Names for all built-in types.
15
Guido van Rossum1c974db1998-02-11 22:36:17 +000016\item[UserDict]
17\item[UserList]
Guido van Rossum7f3b0421997-03-27 14:56:18 +000018--- Class wrappers for dictionary and list objects.
19
Guido van Rossume084f0b1997-11-20 21:03:33 +000020\item[operator]
21--- All python's standard operators as built-in functions.
22
Guido van Rossumecde7811995-03-28 13:35:14 +000023\item[traceback]
24--- Print or retrieve a stack traceback.
25
26\item[pickle]
27--- Convert Python objects to streams of bytes and back.
28
Fred Drake0f354951998-01-21 05:04:52 +000029\item[copy_reg]
Fred Drakeaf0bfbe1998-02-18 15:39:15 +000030--- Register \module{pickle} support functions.
Fred Drake0f354951998-01-21 05:04:52 +000031
Guido van Rossumecde7811995-03-28 13:35:14 +000032\item[shelve]
33--- Python object persistency.
34
35\item[copy]
36--- Shallow and deep copy operations.
37
38\item[marshal]
39--- Convert Python objects to streams of bytes and back (with
40different constraints).
41
42\item[imp]
Fred Drakeaf0bfbe1998-02-18 15:39:15 +000043--- Access the implementation of the \keyword{import} statement.
Guido van Rossumecde7811995-03-28 13:35:14 +000044
Guido van Rossum3317e631996-07-21 02:22:12 +000045\item[parser]
46--- Retrieve and submit parse trees from and to the runtime support
47environment.
48
Guido van Rossum1c974db1998-02-11 22:36:17 +000049\item[symbol]
50--- Constants representing internal nodes of the parse tree.
51
52\item[token]
53--- Constants representing terminal nodes of the parse tree.
54
Guido van Rossume084f0b1997-11-20 21:03:33 +000055\item[keyword]
56--- Test whether a string is a keyword in the Python language.
57
58\item[code]
59--- Code object services.
60
61\item[pprint]
62--- Data pretty printer.
63
64\item[dis]
65--- Disassembler.
66
Guido van Rossumfc5ee0f1997-04-03 22:43:02 +000067\item[site]
68--- A standard way to reference site-specific modules.
69
Guido van Rossume084f0b1997-11-20 21:03:33 +000070\item[user]
71--- A standard way to reference user-specific modules.
72
Guido van Rossumecde7811995-03-28 13:35:14 +000073\item[__builtin__]
74--- The set of built-in functions.
75
76\item[__main__]
77--- The environment where the top-level script is run.
78
79\end{description}