Python Standard Library

Front Cover
"O'Reilly Media, Inc.", 2001 - Computers - 281 pages

Python Standard Library is an essential guide for serious Python programmers. Python is a modular language that imports most useful operations from the standard library (basic support modules; operating system interfaces; network protocols; file formats; data conversions; threads and processes; and data storage). You can't really program in Python without using it. In this book, author Fredrik Lundh, creator of the Python Imaging Library (PIL), delivers tested, accurate documentation of all the modules in the Python Standard Library, along with over 300 annotated example scripts using the modules.Python Standard Library renders this valuable information in a clean, easy-to-read format, yet doesn't talk down to readers. This accurate and complete reference documentation is for the Python programmer who wants the facts and little else.The book is based on the author's work with the Python newsgroup: he reviewed more than 2500 questions and answers to that newsgroup in order to make sure the book covered what Python users really wanted to know. An earlier version of this book has been available electronically for over a year, so the material has been tested by Python programmers in real-life applications.This version of Python Standard Library covers all the new modules and related information for Python 2.0, the first new major release of Python in four years.

 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Selected pages

Contents

Core Modules
1
The__builtin__Module
2
The exceptions Module
17
The os Module
20
The ospath Module
31
The stat Module
36
The string Module
37
The re Module
39
The asynchat Module
176
The urllib Module
179
The urlparse Module
181
The cookie Module
183
The ftplib Module
184
The gopherlib Module
186
The poplib Module
188
The imaplib Module
189

The math Module
42
The cmath Module
43
The copy Module
45
The sys Module
47
The atexit Module
54
The types Module
60
The gc Module
62
More Standard Modules
64
The fileinput Module
65
The shutil Module
66
The tempfile Module
67
The StringIO Module
68
The cStringIO Module
70
The UserDict Module
72
The UserString Module
73
The traceback Module
74
The errno Module
75
The getopt Module
76
The getpass Module
78
The fnmatch Module
79
The random Module
80
The whrandom Module
82
The md5 Module
83
The sha Module
86
The crypt Module
87
The rotor Module
88
The zlib Module
89
The code Module
92
Threads and Processes
95
The threading Module
96
The Queue Module
98
The thread Module
100
The pipes Module
101
The signal Module
103
Data Representation
104
The array Module
105
The struct Module
107
The xdrlib Module
108
The marshal Module
109
The pickle Module
111
The cPickle Module
113
The pprint Module
115
The repr Module
116
The binhex Module
118
The quopri Module
119
The uu Module
120
The binascii Module
122
File Formats
123
The xmllib Module
125
The xmlparsersexpat Module
128
The sgmllib Module
130
The htmllib Module
135
The htmlentitydefs Module
136
The formatter Module
138
The ConfigParser Module
140
The netrc Module
142
The shlex Module
143
The zipfile Module
144
The gzip Module
146
Mail and News Message Processing
148
The mimetools Module
150
The mailbox Module
154
The mailcap Module
155
The mimetypes Module
156
The mimify Module
157
The multifile Module
159
Network Protocols
160
The socket Module
163
The select Module
167
The asyncore Module
168
The smtplib Module
190
The telnetlib Module
191
The nntplib Module
192
The SocketServer Module
195
The BaseHTTPServer Module
196
The SimpleHTTPServer Module
197
The CGIHTTPServer Module
198
The webbrowser Module
200
Internationalization
201
The unicodedata Module
202
The ucnhash Module
203
Multimedia Modules
204
The sndhdr module
205
The aifc Module
206
The sunau Module
208
The audiodev Module
209
The colorsys Module
210
Data Storage
211
The whichdb Module
212
The shelve Module
213
The dbm Module
214
The dumbdbm Module
215
Tools and Utilities
217
The pdb Module
218
The bdb Module
219
The profile Module
220
The pstats Module
221
The tabnanny Module
222
PlatformSpecific Modules
224
The pwd Module
225
The grp Module
226
The nis Module
227
The curses Module
228
The tty Module
229
The resource Module
230
The msvcrt Module
231
The nt Module
233
The posix Module
234
Implementation Support Modules
235
The macpath Module
236
The posixpatb Module
237
The imp Module
238
The new Module
239
The pre Module
240
The py_compile Module
241
The linecache Module
242
The nturl2path module
243
The tokenize Module
244
The parser Module
245
The symbol Module
246
Other Modules
248
Thefilecmp Module
250
The rexec Module
251
The Bastion Module
252
The readline Module
254
The statvfs Module
255
The sched Module
257
The grep Module
258
The dircmp Module
259
The cmp Module
260
The soundex Module
261
The timing Module
262
The posixfile Module
263
The bisect Module
264
The tzparse Module
265
The regsub Module
266
The reconvert Module
267
The find Module
268
Index
269
Copyright

Common terms and phrases

About the author (2001)

Fredrik Lundh is a principal of Secret Labs, Inc., the creators of PythonWorks, an integrated development environment (IDE) for Python. He is an expert on the use of Python with images and graphics and is also the creator of the Python Imaging Library (PIL). He is an active member of the Python community and a frequent contributor to the Python newsgroups.

Bibliographic information