Python in a Nutshell (Google eBook)

Front Cover
"O'Reilly Media, Inc.", Jul 14, 2006 - Computers - 738 pages
14 Reviews

This book offers Python programmers one place to look when they needhelp remembering or deciphering the syntax of this open source languageand its many powerful but scantily documented modules. Thiscomprehensive reference guide makes it easy to look up the mostfrequently needed information--not just about the Python languageitself, but also the most frequently used parts of the standard libraryand the most important third-party extensions.

Ask any Python aficionado and you'll hear that Python programmers haveit all: an elegant object-oriented language with readable andmaintainable syntax, that allows for easy integration with componentsin C, C++, Java, or C#, and an enormous collection of precoded standardlibrary and third-party extension modules. Moreover, Python is easy tolearn, yet powerful enough to take on the most ambitious programmingchallenges. But what Python programmers used to lack is a concise andclear reference resource, with the appropriate measure of guidance inhow best to use Python's great power. Python in aNutshell fills this need.

Python in a Nutshell, Second Edition covers morethan the language itself; it also deals with the mostfrequently used parts of the standard library, and the most popular andimportant third party extensions. Revised and expanded forPython 2.5, this book now contains the gory details of Python's newsubprocess module and breaking news about Microsoft's newIronPython project. Our "Nutshell" format fits Python perfectly bypresenting the highlights of the most important modules and functionsin its standard library, which cover over 90% of your practicalprogramming needs. This book includes:

  • A fast-paced tutorial on the syntax of the Python language
  • An explanation of object-oriented programming in Python
  • Coverage of iterators, generators, exceptions, modules,packages, strings, and regular expressions
  • A quick reference for Python's built-in types and functionsand key modules
  • Reference material on important third-party extensions,such as Numeric and Tkinter
  • Information about extending and embedding Python

Python in a Nutshell provides a solid,no-nonsense quick reference to information that programmers rely on themost. This book will immediately earn its place in any Pythonprogrammer's library.

Praise for the First Edition:

"In a nutshell, Python in a Nutshell serves oneprimary goal: to act as an immediately accessible goal for the Pythonlanguage. True, you can get most of the same core information that ispresented within the covers of this volume online, but this willinvariably be broken into multiple files, and in all likelihood lackingthe examples or the exact syntax description necessary to trulyunderstand a command."
--Richard Cobbett, Linux Format

"O'Reilly has several good books, of which Python in aNutshell by Alex Martelli is probably the best for giving yousome idea of what Python is about and how to do useful things with it."
--Jerry Pournelle, Byte Magazine

  

What people are saying - Write a review

User ratings

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

Review: Python in a Nutshell, Second Edition (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

Review: Python in a Nutshell, Second Edition (In a Nutshell)

User Review  - Jared - Goodreads

The content is quite good, but I don't learn well the way he presents material -- it's rather heavy on the theory, with very little in the way of example. Of course, it's meant to be "in a nutshell ... Read full review

Contents

II
31
III
213
IV
491
V
611
Index
677
Copyright

Common terms and phrases

References to this book

About the author (2006)

Martelli spent eight years with IBM Research. He then spent 13 years as a senior software consultant at think3 inc, developing libraries, network protocols, GUI engines, event frameworks, and web access frontends.