|
1 | 1 | # Fluent Python 2e example code
|
2 | 2 |
|
3 |
| -Example code for the book **Fluent Python, 2<sup>nd</sup> edition** by Luciano Ramalho (O'Reilly, 2021). |
| 3 | +Example code for the book **Fluent Python, Second Edition** by Luciano Ramalho (O'Reilly, 2022). |
4 | 4 |
|
5 |
| -> **BEWARE**: This is a work in progress! |
6 |
| -> |
7 |
| -> * Code here may change and disappear without warning. |
8 |
| -> |
9 |
| -> * Major reorganizations may happen at any time. |
10 |
| -> |
11 |
| -> * No promises. No guarantees. Use at own risk. |
12 | 5 |
|
13 | 6 | ## Table of Contents
|
14 | 7 |
|
15 | 8 | All chapters are undergoing review and updates, including significant rewrites in the chapters about concurrency in **Part V**.
|
16 | 9 |
|
17 | 10 | New chapters in **Fluent Python 2e** are marked with 🆕.
|
18 | 11 |
|
19 |
| -🚨 This table of contents is subject to change at any time until the book goes to the printer. |
| 12 | +> 🚨 This table of contents is subject to change at any time until the book goes to the printer.<BR> |
| 13 | +Latest change: Old **Part I—Prologue** merged into new **Part I—Data Structures**; parts renumbered accordingly; chapter numbers unchanged. |
20 | 14 |
|
21 | 15 | Part / Chapter #|Title|Directory|1<sup>st</sup> ed. Chapter #
|
22 | 16 | ---:|---|---|:---:
|
23 |
| -**I – Prologue**| |
| 17 | +**I – Data Structures**| |
24 | 18 | 1|The Python Data Model|[01-data-model](01-data-model)|1
|
25 |
| -**II – Data Structures**| |
26 | 19 | 2|An Array of Sequences|[02-array-seq](02-array-seq)|2
|
27 | 20 | 3|Dictionaries and Sets|[03-dict-set](03-dict-set)|3
|
28 | 21 | 4|Unicode Text versus Bytes|[04-text-byte](04-text-byte)|4
|
29 | 22 | 5|Data Class Builders|[05-data-classes](05-data-classes)|🆕
|
30 | 23 | 6|Object References, Mutability, and Recycling|[06-obj-ref](06-obj-ref)|8
|
31 |
| -**III – Functions as Objects**| |
| 24 | +**II – Functions as Objects**| |
32 | 25 | 7|Funcions as First-Class Objects|[07-1class-func](07-1class-func)|5
|
33 |
| -8|Type Hints in Function Definitions|[08-def-type-hints](08-def-type-hints)|🆕 |
34 |
| -9|Function Decorators and Closures|[09-closure-deco](09-closure-deco)|7 |
| 26 | +8|Type Hints in Functions|[08-def-type-hints](08-def-type-hints)|🆕 |
| 27 | +9|Decorators and Closures|[09-closure-deco](09-closure-deco)|7 |
35 | 28 | 10|Design Patterns with First-Class Functions|[10-dp-1class-func](10-dp-1class-func)|6
|
36 |
| -**IV – Object-Oriented Idioms**| |
| 29 | +**III – Object-Oriented Idioms**| |
37 | 30 | 11|A Pythonic Object|[11-pythonic-obj](11-pythonic-obj)|9
|
38 |
| -12|Sequence Hacking, Hashing, and Slicing|[12-seq-hacking](12-seq-hacking)|10 |
| 31 | +12|Special Methods for Sequences|[12-seq-hacking](12-seq-hacking)|10 |
39 | 32 | 13|Interfaces, Protocols, and ABCs|[13-protocl-abc](13-protocol-abc)|11
|
40 |
| -14|Inheritance: For Good or For Worse|[14-inheritance](14-inheritance)|12 |
| 33 | +14|Inheritance: For Better or For Worse|[14-inheritance](14-inheritance)|12 |
41 | 34 | 15|More About Type Hints|[15-more-types](15-more-types)|🆕
|
42 |
| -16|Operator Overloading: Doing It Right|[16-op-overloading](16-op-overloading)|13 |
43 |
| -**V – Control Flow**| |
| 35 | +16|Operator Overloading|[16-op-overloading](16-op-overloading)|13 |
| 36 | +**IV – Control Flow**| |
44 | 37 | 17|Iterators, Generators, and Classic Coroutines|[17-it-generator](17-it-generator)|14
|
45 |
| -18|Context Managers and else Blocks|[18-with-match](18-with-match)|15 |
| 38 | +18|with, match, and else Blocks|[18-with-match](18-with-match)|15 |
46 | 39 | 19|Concurrency Models in Python|[19-concurrency](19-concurrency)|🆕
|
47 | 40 | 20|Concurrent Executors|[20-executors](20-executors)|17
|
48 | 41 | 21|Asynchronous Programming|[21-async](21-async)|18
|
49 |
| -**VI – Metaprogramming**| |
| 42 | +**V – Metaprogramming**| |
50 | 43 | 22|Dynamic Attributes and Properties|[22-dyn-attr-prop](22-dyn-attr-prop)|19
|
51 | 44 | 23|Attribute Descriptors|[23-descriptor](23-descriptor)|20
|
52 | 45 | 24|Class Metaprogramming|[24-class-metaprog](24-class-metaprog)|21
|
0 commit comments