annotate Doc/lib/libpython.tex @ 8024:49f1cf4b174c legacy-trunk

Add cPickle to the list of modules in the chapter.
author Fred Drake <fdrake@acm.org>
date Sun, 12 Apr 1998 03:08:41 +0000
parents 8f0e29ce59ef
children 760dcf197048
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2609
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
1 \chapter{Python Services}
7360
2a07258b1f4e Added \label{} for logical addressing.
Fred Drake <fdrake@acm.org>
parents: 7249
diff changeset
2 \label{python}
2609
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
3
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
4 The modules described in this chapter provide a wide range of services
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 related to the Python interpreter and its interaction with its
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
6 environment. Here's an overview:
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
7
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 \begin{description}
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
9
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
10 \item[sys]
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
11 --- Access system specific parameters and functions.
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
12
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
13 \item[types]
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
14 --- Names for all built-in types.
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
15
7249
f0bb3bcf397b Split UserDict and UserList on two separate lines; added entries for
Guido van Rossum <guido@python.org>
parents: 7245
diff changeset
16 \item[UserDict]
7828
8f0e29ce59ef Capitalize "Python" for consistency.
Fred Drake <fdrake@acm.org>
parents: 7790
diff changeset
17 --- Class wrapper for dictionary objects.
8f0e29ce59ef Capitalize "Python" for consistency.
Fred Drake <fdrake@acm.org>
parents: 7790
diff changeset
18
7249
f0bb3bcf397b Split UserDict and UserList on two separate lines; added entries for
Guido van Rossum <guido@python.org>
parents: 7245
diff changeset
19 \item[UserList]
7828
8f0e29ce59ef Capitalize "Python" for consistency.
Fred Drake <fdrake@acm.org>
parents: 7790
diff changeset
20 --- Class wrapper for list objects.
5220
e1f613322b23 Added docs for UserDict,UserList
Guido van Rossum <guido@python.org>
parents: 3761
diff changeset
21
6615
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
22 \item[operator]
7828
8f0e29ce59ef Capitalize "Python" for consistency.
Fred Drake <fdrake@acm.org>
parents: 7790
diff changeset
23 --- All Python's standard operators as built-in functions.
6615
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
24
2609
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
25 \item[traceback]
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
26 --- Print or retrieve a stack traceback.
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
27
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
28 \item[pickle]
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
29 --- Convert Python objects to streams of bytes and back.
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
30
8024
49f1cf4b174c Add cPickle to the list of modules in the chapter.
Fred Drake <fdrake@acm.org>
parents: 7828
diff changeset
31 \item[cPickle]
49f1cf4b174c Add cPickle to the list of modules in the chapter.
Fred Drake <fdrake@acm.org>
parents: 7828
diff changeset
32 --- Faster version of \module{pickle}, but not subclassable.
49f1cf4b174c Add cPickle to the list of modules in the chapter.
Fred Drake <fdrake@acm.org>
parents: 7828
diff changeset
33
7149
7edc30df73f6 Add entry for copy_reg module.
Fred Drake <fdrake@acm.org>
parents: 6615
diff changeset
34 \item[copy_reg]
7360
2a07258b1f4e Added \label{} for logical addressing.
Fred Drake <fdrake@acm.org>
parents: 7249
diff changeset
35 --- Register \module{pickle} support functions.
7149
7edc30df73f6 Add entry for copy_reg module.
Fred Drake <fdrake@acm.org>
parents: 6615
diff changeset
36
2609
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
37 \item[shelve]
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
38 --- Python object persistency.
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
39
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
40 \item[copy]
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
41 --- Shallow and deep copy operations.
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
42
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
43 \item[marshal]
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
44 --- Convert Python objects to streams of bytes and back (with
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
45 different constraints).
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
46
7245
a71168649dc5 Swap ni and imp (so they are in the same order as their sections are).
Guido van Rossum <guido@python.org>
parents: 7149
diff changeset
47 \item[imp]
7360
2a07258b1f4e Added \label{} for logical addressing.
Fred Drake <fdrake@acm.org>
parents: 7249
diff changeset
48 --- Access the implementation of the \keyword{import} statement.
7245
a71168649dc5 Swap ni and imp (so they are in the same order as their sections are).
Guido van Rossum <guido@python.org>
parents: 7149
diff changeset
49
3761
e603601c68cf added parser module to overview
Guido van Rossum <guido@python.org>
parents: 2609
diff changeset
50 \item[parser]
e603601c68cf added parser module to overview
Guido van Rossum <guido@python.org>
parents: 2609
diff changeset
51 --- Retrieve and submit parse trees from and to the runtime support
e603601c68cf added parser module to overview
Guido van Rossum <guido@python.org>
parents: 2609
diff changeset
52 environment.
e603601c68cf added parser module to overview
Guido van Rossum <guido@python.org>
parents: 2609
diff changeset
53
7249
f0bb3bcf397b Split UserDict and UserList on two separate lines; added entries for
Guido van Rossum <guido@python.org>
parents: 7245
diff changeset
54 \item[symbol]
f0bb3bcf397b Split UserDict and UserList on two separate lines; added entries for
Guido van Rossum <guido@python.org>
parents: 7245
diff changeset
55 --- Constants representing internal nodes of the parse tree.
f0bb3bcf397b Split UserDict and UserList on two separate lines; added entries for
Guido van Rossum <guido@python.org>
parents: 7245
diff changeset
56
f0bb3bcf397b Split UserDict and UserList on two separate lines; added entries for
Guido van Rossum <guido@python.org>
parents: 7245
diff changeset
57 \item[token]
f0bb3bcf397b Split UserDict and UserList on two separate lines; added entries for
Guido van Rossum <guido@python.org>
parents: 7245
diff changeset
58 --- Constants representing terminal nodes of the parse tree.
f0bb3bcf397b Split UserDict and UserList on two separate lines; added entries for
Guido van Rossum <guido@python.org>
parents: 7245
diff changeset
59
6615
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
60 \item[keyword]
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
61 --- Test whether a string is a keyword in the Python language.
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
62
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
63 \item[code]
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
64 --- Code object services.
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
65
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
66 \item[pprint]
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
67 --- Data pretty printer.
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
68
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
69 \item[dis]
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
70 --- Disassembler.
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
71
5262
5abc1a36bedd Added site
Guido van Rossum <guido@python.org>
parents: 5220
diff changeset
72 \item[site]
5abc1a36bedd Added site
Guido van Rossum <guido@python.org>
parents: 5220
diff changeset
73 --- A standard way to reference site-specific modules.
5abc1a36bedd Added site
Guido van Rossum <guido@python.org>
parents: 5220
diff changeset
74
6615
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
75 \item[user]
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
76 --- A standard way to reference user-specific modules.
e54d5171902e Add description for some modules that have been added since this intro
Guido van Rossum <guido@python.org>
parents: 5262
diff changeset
77
2609
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
78 \item[__builtin__]
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
79 --- The set of built-in functions.
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
80
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
81 \item[__main__]
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
82 --- The environment where the top-level script is run.
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
83
7ef72873e4d6 restructured library manual accordiung to functional group
Guido van Rossum <guido@python.org>
parents:
diff changeset
84 \end{description}