This post contains affiliate links. As an Amazon Associate, TechAthletes earns from qualifying purchases. Prices, discounts and availability change — check the official site for current terms.
- Start with the topics you want to study
- The four chapters marked as new
- Data structures: four matching numbers and a moved chapter
- Functions: chapter correspondences alongside type hints
- Object-oriented topics: six entries to compare
- Control flow: the concurrency entries in context
- Metaprogramming: three mapped chapters
- Read the README’s editorial notes alongside its table
- Turn the mapping into an edition checklist
- Where to find the book
- Related posts
Start with the topics you want to study
The example-code repository for Fluent Python, Second Edition gives readers a concrete starting point for comparing editions: a table that pairs second-edition chapters with first-edition chapter numbers. Four entries carry a 🆕 marker instead of a first-edition chapter reference: Data Class Builders, Type Hints in Functions, More About Type Hints, and Concurrency Models in Python.
If those chapter titles match your interests, they provide a specific reason to investigate the second edition. If you already own the first edition, the remaining chapter correspondences help you find where familiar subjects appear in the second-edition contents.
The source for this comparison is the Fluent Python example-code repository, retrieved on October 17, 2026. Its README identifies the book as Fluent Python, Second Edition, by Luciano Ramalho, published by O’Reilly in 2022.
The comparison below follows the repository’s displayed contents and directory listing. A chapter correspondence establishes where the table places a subject in each edition. It does not establish that the two chapters contain identical explanations, exercises, or examples.
The four chapters marked as new
The README explicitly says that new chapters in the second edition are marked with 🆕. Its table contains these four marked entries:
| Second-edition chapter | Title | Example directory |
|---|---|---|
| 5 | Data Class Builders | 05-data-classes |
| 8 | Type Hints in Functions | 08-def-type-hints |
| 15 | More About Type Hints | 15-more-types |
| 19 | Concurrency Models in Python | 19-concurrency |
These entries place the newly marked chapters in several parts of the book. Data Class Builders appears in Part I, “Data Structures.” Type Hints in Functions appears in Part II, “Functions as Objects,” while More About Type Hints appears in Part III, “Object-Oriented Idioms.” Concurrency Models in Python appears in Part IV, “Control Flow.”
For someone comparing editions because of type hints, the table provides two distinct chapter titles to examine. For someone interested in concurrency, it identifies a newly marked chapter before the entries for concurrent executors and asynchronous programming.
The marker describes a chapter’s status in this comparison. It does not, by itself, show that the first edition contains no discussion of the associated subject. That distinction matters when using the table to decide what to investigate next.
Data structures: four matching numbers and a moved chapter
Part I of the displayed second-edition contents contains chapters 1 through 6. The first four entries have matching chapter numbers in the first-edition column:
- The Python Data Model is chapter 1 in both columns.
- An Array of Sequences is chapter 2 in both columns.
- Dictionaries and Sets is chapter 3 in both columns.
- Unicode Text versus Bytes is chapter 4 in both columns.
The repository lists corresponding directories named 01-data-model, 02-array-seq, 03-dict-set, and 04-text-byte. These names connect the chapter titles to the example-code organization.
After those entries, the table places the newly marked Data Class Builders at chapter 5. Object References, Mutability, and Recycling follows at chapter 6, with chapter 8 shown as its first-edition correspondence.
For an existing first-edition reader, this section illustrates how to use the mapping: a familiar subject may retain its number, while another subject appears at a different position. The numbers help locate the corresponding material; they do not measure how extensively it changed.
Functions: chapter correspondences alongside type hints
Part II, “Functions as Objects,” contains second-edition chapters 7 through 10. The entry for functions as first-class objects maps second-edition chapter 7 to first-edition chapter 5. Its directory is 07-1class-func.
Type Hints in Functions follows as chapter 8 and carries the new-chapter marker. Decorators and Closures appears at chapter 9, corresponding to chapter 7 in the first edition. Design Patterns with First-Class Functions appears at chapter 10, corresponding to first-edition chapter 6.
This gives a reader interested in functions several precise reference points. The table connects three entries to numbered first-edition chapters and identifies the type-hint entry as new. It also supplies separate example directories: 08-def-type-hints, 09-closure-deco, and 10-dp-1class-func.
If decorators are your immediate interest, the mapping directs you to chapter 7 in the first-edition column and chapter 9 in the second-edition column. If type hints in functions are your interest, the newly marked chapter is the relevant distinction shown by this source.
Object-oriented topics: six entries to compare
Part III, “Object-Oriented Idioms,” covers second-edition chapters 11 through 16. Its correspondences are:
| Topic | Second-edition chapter | First-edition chapter shown |
|---|---|---|
| A Pythonic Object | 11 | 9 |
| Special Methods for Sequences | 12 | 10 |
| Interfaces, Protocols, and ABCs | 13 | 11 |
| Inheritance: For Better or For Worse | 14 | 12 |
| More About Type Hints | 15 | 🆕 |
| Operator Overloading | 16 | 13 |
Here, the additional type-hint chapter sits between inheritance and operator overloading. A reader following those subjects from the first edition can use the numbered entries to locate their second-edition counterparts.
There is also a small discrepancy worth recognizing when navigating the examples. The chapter 13 directory appears as 13-protocl-abc in the README table, while the repository’s folder listing shows 13-protocol-abc. The folder listing therefore supplies the directory spelling to look for when opening the examples for Interfaces, Protocols, and ABCs.
Control flow: the concurrency entries in context
The displayed Part IV, “Control Flow,” starts with Iterators, Generators, and Classic Coroutines at chapter 17. Its first-edition correspondence is chapter 14. The next entry, with, match, and else Blocks, is chapter 18 and maps to first-edition chapter 15.
The remaining entries are Concurrency Models in Python at chapter 19, Concurrent Executors at chapter 20, and Asynchronous Programming at chapter 21. Concurrency Models in Python carries the new marker. Concurrent Executors maps to first-edition chapter 17, and Asynchronous Programming maps to first-edition chapter 18.
Their example directories are 19-concurrency, 20-executors, and 21-async. Together, the titles and directory names identify three separate locations to inspect when concurrency is the reason for your comparison.
The README also states that all chapters are undergoing review and updates, including significant rewrites of the concurrency chapters. That statement accompanies an editorial warning discussed below; it should be read with that context.
Metaprogramming: three mapped chapters
Part V of the displayed table is “Metaprogramming.” It contains Dynamic Attributes and Properties at chapter 22, Attribute Descriptors at chapter 23, and Class Metaprogramming at chapter 24.
The first-edition column maps those entries to chapters 19, 20, and 21 respectively. Their directories are 22-dyn-attr-prop, 23-descriptor, and 24-class-metaprog.
For a reader returning to descriptors or class metaprogramming, these are direct navigation aids. Each title has both a first-edition chapter reference and a second-edition example directory. None of these three entries carries the new-chapter marker.
Read the README’s editorial notes alongside its table
The README retains a warning that its contents may change until the book goes to the printer. It also includes an organizational note saying that the former prologue was merged into the new Part I, “Data Structures,” with parts renumbered and chapter numbers unchanged.
Another inconsistency concerns the concurrency revision note. That note refers to concurrency chapters in Part V, while the displayed table places them in Part IV and assigns metaprogramming to Part V.
These details limit how confidently the README can serve as a specification of the final printed organization. The table remains useful for comparing its listed chapter titles and following repository directories, but its editorial notes should accompany that use.
Turn the mapping into an edition checklist
Begin with the subjects that prompted your comparison. For data class builders, type hints, or concurrency models, examine the four newly marked second-edition chapters and their example directories. Those are the clearest explicit additions identified by the repository.
For subjects such as decorators, sequences, inheritance, or descriptors, use the first-edition references to locate the corresponding entries. A numbered correspondence supports a topic-based comparison without establishing equivalent coverage.
If you already have the first edition, the table can guide a focused inspection of the second-edition examples. If you are choosing your first copy, it identifies named topics to investigate before deciding. The repository provides chapter mappings, new-chapter markers, and example locations; those are the concrete grounds for this comparison.
Where to find the book
Fluent Python by Luciano Ramalho is listed on Amazon. Both editions share the title Fluent Python: Clear, Concise, and Effective Programming, so check that the listing says which edition it is before you buy — the chapter mapping above refers to the second edition.

Comments