Python in a Nutshell

Front Cover
"O'Reilly Media, Inc.", 2003 - Computers - 636 pages
13 Reviews

Ask any Python aficionado and you'll hear that Python programmers have it all: an elegant language that offers object-oriented programming support, a readable, maintainable syntax, integration with C components, and an enormous collection of precoded standard library and extension modules. Moreover, Python is easy to learn but powerful enough to take on the most ambitious programming challenges. But what Python programmers have lacked is one concise and clear reference resource, with the appropriate measure of guidance in how best to use Python's great power. NowPython in a Nutshellfills this need.

In the tradition of O'Reilly's "In a Nutshell" series, this book offers Python programmers one place to look when they need help remembering or deciphering the syntax of this open source language and its many modules. This comprehensive reference guide makes it easy to look up all the most frequently needed information--not just about the Python language itself, but also the most frequently used parts of the standard library and the most important third-party extensions.

Python in a Nutshellfocuses on Python 2.2 (and all its point releases), currently the most stable and widespread Python release. This book includes:

  • A fast-paced tutorial on the syntax of the Python language itself
  • An explanation of object-oriented programming in Python, covering both the classic and new-style object models
  • Coverage of other core topics, including exceptions, modules, strings, and regular expressions
  • A quick reference for Python's built-in types and functions, as well as the key modules in the Python standard library, including sys, os, time, thread, math, and socket, among many others
  • Reference material on important third-party extensions, such as Numeric and Tkinter
  • Information about extending Python and embedding it into other applications
Python in a Nutshellprovides a solid, no-nonsense quick reference to information that programmers rely on the most. This latest addition to the best-selling "In a Nutshell" series will immediately earn its place in any Python programmer's library.
  

What people are saying - Write a review

User ratings

5 stars
3
4 stars
3
3 stars
4
2 stars
3
1 star
0

Review: Python in a Nutshell

User Review  - Phil - Goodreads

This is not a book that one would read if they want to learn Python. This is a book that describes the language in a very literal sense. It discusses the makeup of the language in extreme detail, and ... Read full review

Review: Python in a Nutshell

User Review  - Qubitng - Goodreads

Unusable as a Python text. I don't know why I keep hoping these "in a Nutshell" books could jump start me in a language. They just don't work. Read full review

Contents

I
v
II
xi
III
1
IV
3
VII
4
VIII
5
IX
7
X
8
XCII
269
XCIII
273
XCIV
274
XCV
276
XCVI
277
XCVII
278
XCVIII
279
XCIX
284

XI
12
XII
16
XIII
17
XIV
19
XVII
22
XVIII
24
XIX
25
XX
29
XXIII
33
XXIV
39
XXV
43
XXVI
44
XXVII
46
XXVIII
49
XXIX
51
XXXI
58
XXXII
69
XXXIV
70
XXXV
81
XXXVI
90
XXXVII
100
XXXVIII
104
XXXIX
107
XL
108
XLI
109
XLII
111
XLIII
112
XLIV
116
XLV
120
XLVI
124
XLVIII
126
XLIX
129
L
137
LI
141
LIII
143
LV
145
LVIII
149
LIX
151
LX
153
LXI
154
LXIII
156
LXIV
169
LXV
171
LXVIII
173
LXIX
187
LXX
192
LXXI
197
LXXII
198
LXXIII
204
LXXIV
206
LXXV
212
LXXVI
215
LXXVII
223
LXXIX
224
LXXX
230
LXXXI
234
LXXXII
237
LXXXIII
245
LXXXVI
249
LXXXVII
250
LXXXVIII
252
LXXXIX
260
XC
262
XCI
268
C
287
CI
288
CII
292
CIII
296
CIV
297
CV
299
CVI
300
CVII
301
CVIII
303
CIX
304
CX
322
CXI
326
CXII
328
CXIII
329
CXIV
330
CXV
336
CXVI
341
CXVII
344
CXVIII
347
CXIX
356
CXX
362
CXXI
365
CXXII
371
CXXV
380
CXXVI
388
CXXVII
391
CXXVIII
405
CXXIX
407
CXXXI
416
CXXXII
419
CXXXIII
423
CXXXIV
427
CXXXV
428
CXXXVI
431
CXXXIX
438
CXL
443
CXLI
454
CXLII
462
CXLIII
466
CXLIV
469
CXLVI
472
CXLVII
481
CL
485
CLI
488
CLII
490
CLIII
494
CLIV
495
CLV
496
CLVI
501
CLVII
508
CLVIII
513
CLIX
515
CLXII
545
CLXIII
546
CLXIV
550
CLXV
551
CLXVI
554
CLXVII
557
CLXVIII
560
CLXIX
568
CLXX
569
CLXXI
571
Copyright

Common terms and phrases

References to this book

About the author (2003)

Alex Martelli spent 8 years with IBM Research, winning three Outstanding Technical Achievement Awards. He then spent 13 as a Senior Software Consultant at think3 inc, developing libraries, network protocols, GUI engines, event frameworks, and web access frontends. He has also taught programming languages, development methods, and numerical computing at Ferrara University and other venues. He's a C++ MVP for Brainbench, and a member of the Python Software Foundation. He currently works for AB Strakt, a Python-centered software house in Gteborg, Sweden, mostly by telecommuting from his home in Bologna, Italy. Alex's proudest achievement is the articles that appeared in Bridge World (January/February 2000), which were hailed as giant steps towards solving issues that had haunted contract bridge theoreticians for decades.

Bibliographic information