blob: 2b03e975fda90bf9d2e73850182251c0d669c7d3 [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]
Fred Drake395e8e41998-04-03 07:10:41 +000017--- Class wrapper for dictionary objects.
18
Guido van Rossum1c974db1998-02-11 22:36:17 +000019\item[UserList]
Fred Drake395e8e41998-04-03 07:10:41 +000020--- Class wrapper for list objects.
Guido van Rossum7f3b0421997-03-27 14:56:18 +000021
Guido van Rossume084f0b1997-11-20 21:03:33 +000022\item[operator]
Fred Drake395e8e41998-04-03 07:10:41 +000023--- All Python's standard operators as built-in functions.
Guido van Rossume084f0b1997-11-20 21:03:33 +000024
Guido van Rossumecde7811995-03-28 13:35:14 +000025\item[traceback]
26--- Print or retrieve a stack traceback.
27
28\item[pickle]
29--- Convert Python objects to streams of bytes and back.
30
Fred Drake0f354951998-01-21 05:04:52 +000031\item[copy_reg]
Fred Drakeaf0bfbe1998-02-18 15:39:15 +000032--- Register \module{pickle} support functions.
Fred Drake0f354951998-01-21 05:04:52 +000033
Guido van Rossumecde7811995-03-28 13:35:14 +000034\item[shelve]
35--- Python object persistency.
36
37\item[copy]
38--- Shallow and deep copy operations.
39
40\item[marshal]
41--- Convert Python objects to streams of bytes and back (with
42different constraints).
43
44\item[imp]
Fred Drakeaf0bfbe1998-02-18 15:39:15 +000045--- Access the implementation of the \keyword{import} statement.
Guido van Rossumecde7811995-03-28 13:35:14 +000046
Guido van Rossum3317e631996-07-21 02:22:12 +000047\item[parser]
48--- Retrieve and submit parse trees from and to the runtime support
49environment.
50
Guido van Rossum1c974db1998-02-11 22:36:17 +000051\item[symbol]
52--- Constants representing internal nodes of the parse tree.
53
54\item[token]
55--- Constants representing terminal nodes of the parse tree.
56
Guido van Rossume084f0b1997-11-20 21:03:33 +000057\item[keyword]
58--- Test whether a string is a keyword in the Python language.
59
60\item[code]
61--- Code object services.
62
63\item[pprint]
64--- Data pretty printer.
65
66\item[dis]
67--- Disassembler.
68
Guido van Rossumfc5ee0f1997-04-03 22:43:02 +000069\item[site]
70--- A standard way to reference site-specific modules.
71
Guido van Rossume084f0b1997-11-20 21:03:33 +000072\item[user]
73--- A standard way to reference user-specific modules.
74
Guido van Rossumecde7811995-03-28 13:35:14 +000075\item[__builtin__]
76--- The set of built-in functions.
77
78\item[__main__]
79--- The environment where the top-level script is run.
80
81\end{description}