blob: 959e21588c3092eace5d5d95fed56a54795c5f95 [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 Rossumc4452fd1998-02-11 22:32:23 +000045\item[ni]
46--- New import (obsolete).
47
Guido van Rossum3317e631996-07-21 02:22:12 +000048\item[parser]
49--- Retrieve and submit parse trees from and to the runtime support
50environment.
51
Guido van Rossum1c974db1998-02-11 22:36:17 +000052\item[symbol]
53--- Constants representing internal nodes of the parse tree.
54
55\item[token]
56--- Constants representing terminal nodes of the parse tree.
57
Guido van Rossume084f0b1997-11-20 21:03:33 +000058\item[keyword]
59--- Test whether a string is a keyword in the Python language.
60
61\item[code]
62--- Code object services.
63
64\item[pprint]
65--- Data pretty printer.
66
67\item[dis]
68--- Disassembler.
69
Guido van Rossumfc5ee0f1997-04-03 22:43:02 +000070\item[site]
71--- A standard way to reference site-specific modules.
72
Guido van Rossume084f0b1997-11-20 21:03:33 +000073\item[user]
74--- A standard way to reference user-specific modules.
75
Guido van Rossumecde7811995-03-28 13:35:14 +000076\item[__builtin__]
77--- The set of built-in functions.
78
79\item[__main__]
80--- The environment where the top-level script is run.
81
82\end{description}