New
High Performance Python
Practical Performant Programming for Humans
by Ian Ozsvald, Micha Gorelick
Pages
336
Published
2021
A focused reference to the core Python language for working developers
Cut through the noise and build a precise, working mental model of Python β from data model fundamentals to generators, decorators, and beyond.
Python Distilled by David Beazley strips the Python language down to its essential mechanics and gives you a clear, authoritative picture of how it actually works. This is not a beginner tutorial or an encyclopedia of the standard library. It is a focused, practitioner-level reference for developers who already write Python and want to understand it with the precision needed to build reliable, idiomatic code at any scale.
Most Python books teach you enough to be dangerous. Python Distilled teaches you enough to be trusted. David Beazley, one of the most respected Python educators working today, distills over two decades of deep language expertise into a concise, precise account of how Python actually behaves β not how you might assume it behaves.
The book moves methodically through the core language: types and objects, functions and closures, classes and inheritance, the iterator and generator protocol, metaprogramming, and the module system. Each topic is treated with the specificity a working developer needs. You will not find hand-waving or reassuring oversimplifications. You will find exactly what Python does and why.
Where other books pad chapters with motivational context, Python Distilled trusts your time. Explanations are tight. Code examples are purposeful. The focus throughout is the language itself β its data model, its execution model, its idioms β rather than any particular application domain or third-party ecosystem.
This is the book to read when you are shipping real Python and need answers you can act on. It is also the book to keep open when you are reviewing a pull request, debugging a subtle descriptor interaction, or deciding whether a metaclass is actually the right tool. Beazley's precision makes it useful in both modes.
If you already write Python and want to understand it with the depth that separates competent from expert, this is the book that will get you there.
Establishes the foundational vocabulary: variables, types, expressions, and control flow. Sets the precise tone the rest of the book maintains.
Covers Python's operators in depth, including truthiness, comparison semantics, and the behavior of numeric and string types under real operations.
Examines conditionals, loops, exceptions, and context managers as language constructs, not just syntax β explaining what the runtime actually does at each step.
Covers function definition, argument passing, closures, decorators, and higher-order patterns. You will leave with a precise model of how Python binds and executes functions.
Walks through class definition, inheritance, the MRO, special methods, and the descriptor protocol. Emphasizes what the data model is actually doing beneath familiar syntax.
Treats functions as objects, exploring callables, partial application, and the tools in functools that follow naturally from Python's first-class function model.
Builds a complete model of Python's iterator protocol, then shows how generator functions and expressions implement and extend it. Coroutines and send() are covered with equal rigor.
Explains the import system from the inside: how modules are found, loaded, cached, and how packages structure larger codebases. Covers relative imports, namespace packages, and common pitfalls.
Covers file I/O, text encoding, binary data, and the standard stream model β the mechanics you need to read and write data reliably across platforms.
Examines the tools that operate on the class and object system itself: class decorators, metaclasses, __init_subclass__, and __class_getitem__. Explains when each approach is appropriate and what trade-offs each carries.
Intermediate is the right entry point. You should be comfortable writing Python functions and classes. The book does not teach syntax from scratch, but it does not assume you have studied language internals before.
Both. The chapters are sequenced so reading straight through builds a coherent mental model. The precise, topic-focused structure also makes it easy to jump to a specific area when you need an answer quickly.
No. Python Distilled focuses on the core language itself. You will not find chapters on requests, asyncio's high-level API, or Django. The value is depth on the language, not breadth across the ecosystem.
The book targets Python 3 and reflects modern Python idioms. Code examples use Python 3 syntax throughout, with attention to features introduced in recent releases.
The book contains focused code examples throughout each chapter. Check the publisher's or author's official site for any supplementary materials associated with the book.
Complete beginners who have not yet written a Python script will find it moves too fast. It is also not the right book if you want coverage of specific libraries or application frameworks β those topics are out of scope by design.
New
Practical Performant Programming for Humans
by Ian Ozsvald, Micha Gorelick
New
A thorough reference to Python language fundamentals, from syntax and data types to classes and advanced tools
by Mark Lutz
New
A Hands-On, Project-Based Introduction to Programming in Python
by Eric Matthes
New
A Concise Desktop Reference for Python 3 β Language, Libraries, and Best Practices
by Alex Martelli, Anna Martelli Ravenscroft, Paul McGuire, Steve Holden