Buying Options
Python in a Nutshell, Second Edition
Print $39.99
Add to Cart
Print+Ebook $43.99
Add to Cart
Ebook $31.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £30.99
Add to Cart
What is this?

Product Editions

  1. Python in a Nutshell, Second Edition - July 2006
  2. Python in a Nutshell - March 2003
Description
Python in a Nutshell provides a solid, no-nonsense quick reference to information that programmers rely on the most. This book will immediately earn its place in any Python programmer's library.
Full Description
Table of Contents
  1. Getting Started with Python

    1. Chapter 1 Introduction to Python

      1. The Python Language
      2. The Python Standard Library and Extension Modules
      3. Python Implementations
      4. Python Development and Versions
      5. Python Resources
    2. Chapter 2 Installation

      1. Installing Python from Source Code
      2. Installing Python from Binaries
      3. Installing Jython
      4. Installing IronPython
    3. Chapter 3 The Python Interpreter

      1. The python Program
      2. Python Development Environments
      3. Running Python Programs
      4. The jython Interpreter
      5. The IronPython Interpreter
  2. Core Python Language and Built-ins

    1. Chapter 4 The Python Language

      1. Lexical Structure
      2. Data Types
      3. Variables and Other References
      4. Expressions and Operators
      5. Numeric Operations
      6. Sequence Operations
      7. Set Operations
      8. Dictionary Operations
      9. The print Statement
      10. Control Flow Statements
      11. Functions
    2. Chapter 5 Object-Oriented Python

      1. Classes and Instances
      2. Special Methods
      3. Decorators
      4. Metaclasses
    3. Chapter 6 Exceptions

      1. The try Statement
      2. Exception Propagation
      3. The raise Statement
      4. Exception Objects
      5. Custom Exception Classes
      6. Error-Checking Strategies
    4. Chapter 7 Modules

      1. Module Objects
      2. Module Loading
      3. Packages
      4. The Distribution Utilities (distutils)
    5. Chapter 8 Core Built-ins

      1. Built-in Types
      2. Built-in Functions
      3. The sys Module
      4. The copy Module
      5. The collections Module
      6. The functional Module
      7. The bisect Module
      8. The heapq Module
      9. The UserDict Module
      10. The optparse Module
      11. The itertools Module
    6. Chapter 9 Strings and Regular Expressions

      1. Methods of String Objects
      2. The string Module
      3. String Formatting
      4. The pprint Module
      5. The repr Module
      6. Unicode
      7. Regular Expressions and the re Module
  3. Python Library and Extension Modules

    1. Chapter 10 File and Text Operations

      1. Other Chapters That Also Deal with Files
      2. Organization of This Chapter
      3. File Objects
      4. Auxiliary Modules for File I/O
      5. The StringIO and cStringIO Modules
      6. Compressed Files
      7. The os Module
      8. Filesystem Operations
      9. Text Input and Output
      10. Richer-Text I/O
      11. Interactive Command Sessions
      12. Internationalization
    2. Chapter 11 Persistence and Databases

      1. Serialization
      2. DBM Modules
      3. Berkeley DB Interfacing
      4. The Python Database API (DBAPI) 2.0
    3. Chapter 12 Time Operations

      1. The time Module
      2. The datetime Module
      3. The pytz Module
      4. The dateutil Module
      5. The sched Module
      6. The calendar Module
      7. The mx.DateTime Module
    4. Chapter 13 Controlling Execution

      1. Dynamic Execution and the exec Statement
      2. Internal Types
      3. Garbage Collection
      4. Termination Functions
      5. Site and User Customization
    5. Chapter 14 Threads and Processes

      1. Threads in Python
      2. The thread Module
      3. The Queue Module
      4. The threading Module
      5. Threaded Program Architecture
      6. Process Environment
      7. Running Other Programs
      8. The mmap Module
    6. Chapter 15 Numeric Processing

      1. The math and cmath Modules
      2. The operator Module
      3. Random and Pseudorandom Numbers
      4. The decimal Module
      5. The gmpy Module
    7. Chapter 16 Array Processing

      1. The array Module
      2. Extensions for Numeric Array Computation
      3. The Numeric Package
      4. Array Objects
      5. Universal Functions (ufuncs)
      6. Auxiliary Numeric Modules
    8. Chapter 17 Tkinter GUIs

      1. Tkinter Fundamentals
      2. Widget Fundamentals
      3. Commonly Used Simple Widgets
      4. Container Widgets
      5. Menus
      6. The Text Widget
      7. The Canvas Widget
      8. Layout Management
      9. Tkinter Events
    9. Chapter 18 Testing, Debugging, and Optimizing

      1. Testing
      2. Debugging
      3. The warnings Module
      4. Optimization
  4. Network and Web Programming

    1. Chapter 19 Client-Side Network Protocol Modules

      1. URL Access
      2. Email Protocols
      3. The HTTP and FTP Protocols
      4. Network News
      5. Telnet
      6. Distributed Computing
      7. Other Protocols
    2. Chapter 20 Sockets and Server-Side Network Protocol Modules

      1. The socket Module
      2. The SocketServer Module
      3. Event-Driven Socket Programs
    3. Chapter 21 CGI Scripting and Alternatives

      1. CGI in Python
      2. Cookies
      3. Other Server-Side Approaches
    4. Chapter 22 MIME and Network Encodings

      1. Encoding Binary Data as Text
      2. MIME and Email Format Handling
    5. Chapter 23 Structured Text: HTML

      1. The sgmllib Module
      2. The htmllib Module
      3. The HTMLParser Module
      4. The BeautifulSoup Extension
      5. Generating HTML
    6. Chapter 24 Structured Text: XML

      1. An Overview of XML Parsing
      2. Parsing XML with SAX
      3. Parsing XML with DOM
      4. Changing and Generating XML
  5. Extending and Embedding

    1. Chapter 25 Extending and Embedding Classic Python

      1. Extending Python with Python's C API
      2. Extending Python Without Python's C API
      3. Embedding Python
      4. Pyrex
    2. Chapter 26 Extending and Embedding Jython

      1. Importing Java Packages in Jython
      2. Embedding Jython in Java
      3. Compiling Python into Java
    3. Chapter 27 Distributing Extensions and Programs

      1. Python's distutils
      2. py2exe
      3. py2app
      4. cx_Freeze
      5. PyInstaller
  1. Colophon

View Full Table of Contents
Product Details
Title:
Python in a Nutshell, Second Edition
By:
Alex Martelli
Publisher:
O'Reilly Media
Formats:
  • Print
  • Ebook
  • Safari Books Online
Print Release:
July 2006
Ebook Release:
June 2009
Pages:
742
Print ISBN:
978-0-596-10046-9
| ISBN 10:
0-596-10046-9
Ebook ISBN:
978-0-596-10566-2
| ISBN 10:
0-596-10566-5
Customer Reviews
About the Author
  1. Alex Martelli

    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 G teborg, 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.

    View Alex Martelli's full profile page.

  • Book cover of Python in a Nutshell