blob: 902a09210d9a67f194c56cb5ec595ba63061b5db [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 Rossum7f3b0421997-03-27 14:56:18 +000015\item[UserDict, UserList]
16--- Class wrappers for dictionary and list objects.
17
Guido van Rossume084f0b1997-11-20 21:03:33 +000018\item[operator]
19--- All python's standard operators as built-in functions.
20
Guido van Rossumecde7811995-03-28 13:35:14 +000021\item[traceback]
22--- Print or retrieve a stack traceback.
23
24\item[pickle]
25--- Convert Python objects to streams of bytes and back.
26
Fred Drake0f354951998-01-21 05:04:52 +000027\item[copy_reg]
28--- Register \code{pickle} support functions.
29
Guido van Rossumecde7811995-03-28 13:35:14 +000030\item[shelve]
31--- Python object persistency.
32
33\item[copy]
34--- Shallow and deep copy operations.
35
36\item[marshal]
37--- Convert Python objects to streams of bytes and back (with
38different constraints).
39
Guido van Rossume084f0b1997-11-20 21:03:33 +000040\item[ni]
41--- New import (obsolete).
42
Guido van Rossumecde7811995-03-28 13:35:14 +000043\item[imp]
44--- Access the implementation of the \code{import} statement.
45
Guido van Rossum3317e631996-07-21 02:22:12 +000046\item[parser]
47--- Retrieve and submit parse trees from and to the runtime support
48environment.
49
Guido van Rossume084f0b1997-11-20 21:03:33 +000050\item[keyword]
51--- Test whether a string is a keyword in the Python language.
52
53\item[code]
54--- Code object services.
55
56\item[pprint]
57--- Data pretty printer.
58
59\item[dis]
60--- Disassembler.
61
Guido van Rossumfc5ee0f1997-04-03 22:43:02 +000062\item[site]
63--- A standard way to reference site-specific modules.
64
Guido van Rossume084f0b1997-11-20 21:03:33 +000065\item[user]
66--- A standard way to reference user-specific modules.
67
Guido van Rossumecde7811995-03-28 13:35:14 +000068\item[__builtin__]
69--- The set of built-in functions.
70
71\item[__main__]
72--- The environment where the top-level script is run.
73
74\end{description}