blob: bf71da2c3e8b882b606979ddde1ddf8a52662823 [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 Rossum1c974db1998-02-11 22:36:17 +000015\item[UserDict]
16\item[UserList]
Guido van Rossum7f3b0421997-03-27 14:56:18 +000017--- Class wrappers for dictionary and list objects.
18
Guido van Rossume084f0b1997-11-20 21:03:33 +000019\item[operator]
20--- All python's standard operators as built-in functions.
21
Guido van Rossumecde7811995-03-28 13:35:14 +000022\item[traceback]
23--- Print or retrieve a stack traceback.
24
25\item[pickle]
26--- Convert Python objects to streams of bytes and back.
27
Fred Drake0f354951998-01-21 05:04:52 +000028\item[copy_reg]
29--- Register \code{pickle} support functions.
30
Guido van Rossumecde7811995-03-28 13:35:14 +000031\item[shelve]
32--- Python object persistency.
33
34\item[copy]
35--- Shallow and deep copy operations.
36
37\item[marshal]
38--- Convert Python objects to streams of bytes and back (with
39different constraints).
40
41\item[imp]
42--- Access the implementation of the \code{import} statement.
43
Guido van Rossumc4452fd1998-02-11 22:32:23 +000044\item[ni]
45--- New import (obsolete).
46
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}