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