Oops -- Lib/Test should be Lib/test, of course!
[python/dscho.git] / Doc / libpython.tex
blob944f80fc835c9e74dc4c9a3faae0b6481cb5f2e6
1 \chapter{Python Services}
2 \label{python}
4 The modules described in this chapter provide a wide range of services
5 related to the Python interpreter and its interaction with its
6 environment. Here's an overview:
8 \begin{description}
10 \item[sys]
11 --- Access system specific parameters and functions.
13 \item[types]
14 --- Names for all built-in types.
16 \item[UserDict]
17 --- Class wrapper for dictionary objects.
19 \item[UserList]
20 --- Class wrapper for list objects.
22 \item[operator]
23 --- All Python's standard operators as built-in functions.
25 \item[traceback]
26 --- Print or retrieve a stack traceback.
28 \item[pickle]
29 --- Convert Python objects to streams of bytes and back.
31 \item[cPickle]
32 --- Faster version of \module{pickle}, but not subclassable.
34 \item[copy_reg]
35 --- Register \module{pickle} support functions.
37 \item[shelve]
38 --- Python object persistency.
40 \item[copy]
41 --- Shallow and deep copy operations.
43 \item[marshal]
44 --- Convert Python objects to streams of bytes and back (with
45 different constraints).
47 \item[imp]
48 --- Access the implementation of the \keyword{import} statement.
50 \item[parser]
51 --- Retrieve and submit parse trees from and to the runtime support
52 environment.
54 \item[symbol]
55 --- Constants representing internal nodes of the parse tree.
57 \item[token]
58 --- Constants representing terminal nodes of the parse tree.
60 \item[keyword]
61 --- Test whether a string is a keyword in the Python language.
63 \item[code]
64 --- Code object services.
66 \item[pprint]
67 --- Data pretty printer.
69 \item[dis]
70 --- Disassembler.
72 \item[site]
73 --- A standard way to reference site-specific modules.
75 \item[user]
76 --- A standard way to reference user-specific modules.
78 \item[__builtin__]
79 --- The set of built-in functions.
81 \item[__main__]
82 --- The environment where the top-level script is run.
84 \end{description}