Copyright © 2023, by Alex Martelli, Anna Ravenscroft, Steve Holden, and Paul McGuire. All rights reserved.
This repository contains the online content and code snippets presented in Python in a Nutshell, 4 Ed.
- Chapter 1 - Introduction to Python
- Chapter 2 - The Python Interpreter
- Chapter 3 - The Python Language
- Chapter 4 - Object-Oriented Python
- Chapter 5 - Type Annotations
- Chapter 6 - Exceptions
- Chapter 7 - Modules
- Chapter 8 - Core Builtins and Standard Library Modules
- Chapter 9 - Strings and Things
- Chapter 10 - Regular Expressions
- Chapter 11 - File and Text Operations
- Chapter 12 - Persistence and Databases
- Chapter 13 - Time Operations
- Chapter 14 - Controlling Execution
- Chapter 15 - Threads and Processes
- Chapter 16 - Numeric Processing
- Chapter 17 - Testing, Debugging, and Optimizing
- Chapter 18 - Basic Networking
- Chapter 19 - Client Side Network Protocol Modules
- Chapter 20 - Serving HTTP
- Chapter 21 - Email, MIME, and Other Network Encodings
- Chapter 22 - Structured Text: HTML
- Chapter 23 - Structured Text: XML
- Chapter 24 - Distributing Extensions and Programs
- Chapter 25 - Extending and Embedding Classic Python
The code snippets will be in the form of a standard script that can be extracted and run using your local Python environment. However, for those book examples that show an interactive session, the snippets in this repository will run the example using doctest to recreate and run these sessions.
You can find more information about doctest in the book content, Chapter 17 - Testing, Debugging, and Optimizing.