blob: 944f80fc835c9e74dc4c9a3faae0b6481cb5f2e6 [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 Drake898601b1998-04-12 03:08:41 +000031\item[cPickle]
32--- Faster version of \module{pickle}, but not subclassable.
33
Fred Drake0f354951998-01-21 05:04:52 +000034\item[copy_reg]
Fred Drakeaf0bfbe1998-02-18 15:39:15 +000035--- Register \module{pickle} support functions.
Fred Drake0f354951998-01-21 05:04:52 +000036
Guido van Rossumecde7811995-03-28 13:35:14 +000037\item[shelve]
38--- Python object persistency.
39
40\item[copy]
41--- Shallow and deep copy operations.
42
43\item[marshal]
44--- Convert Python objects to streams of bytes and back (with
45different constraints).
46
47\item[imp]
Fred Drakeaf0bfbe1998-02-18 15:39:15 +000048--- Access the implementation of the \keyword{import} statement.
Guido van Rossumecde7811995-03-28 13:35:14 +000049
Guido van Rossum3317e631996-07-21 02:22:12 +000050\item[parser]
51--- Retrieve and submit parse trees from and to the runtime support
52environment.
53
Guido van Rossum1c974db1998-02-11 22:36:17 +000054\item[symbol]
55--- Constants representing internal nodes of the parse tree.
56
57\item[token]
58--- Constants representing terminal nodes of the parse tree.
59
Guido van Rossume084f0b1997-11-20 21:03:33 +000060\item[keyword]
61--- Test whether a string is a keyword in the Python language.
62
63\item[code]
64--- Code object services.
65
66\item[pprint]
67--- Data pretty printer.
68
69\item[dis]
70--- Disassembler.
71
Guido van Rossumfc5ee0f1997-04-03 22:43:02 +000072\item[site]
73--- A standard way to reference site-specific modules.
74
Guido van Rossume084f0b1997-11-20 21:03:33 +000075\item[user]
76--- A standard way to reference user-specific modules.
77
Guido van Rossumecde7811995-03-28 13:35:14 +000078\item[__builtin__]
79--- The set of built-in functions.
80
81\item[__main__]
82--- The environment where the top-level script is run.
83
84\end{description}