Go to file
2021-02-28 21:45:34 -03:00
01-data-model ch01-12: clean up by @eumiro 2021-02-14 20:28:07 -03:00
02-array-seq ch01-12: clean up by @eumiro 2021-02-14 20:28:07 -03:00
03-dict-set ch01-12: clean up by @eumiro 2021-02-14 20:28:07 -03:00
04-text-byte ch01-12: clean up by @eumiro 2021-02-14 20:28:07 -03:00
05-record-like ch01-12: clean up by @eumiro 2021-02-14 20:28:07 -03:00
06-obj-ref Modernize code to Python 3.6+ and some cleanup 2021-01-31 22:48:38 +01:00
07-1class-func Modernize code to Python 3.6+ and some cleanup 2021-01-31 22:48:38 +01:00
08-def-type-hints ch01-12: clean up by @eumiro 2021-02-14 20:28:07 -03:00
09-closure-deco ch01-12: clean up by @eumiro 2021-02-14 20:28:07 -03:00
10-dp-1class-func ch01-12: clean up by @eumiro 2021-02-14 20:28:07 -03:00
11-pythonic-obj ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
12-seq-hacking ch01-12: clean up by @eumiro 2021-02-14 20:28:07 -03:00
13-protocol-abc ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
14-inheritance ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
16-op-overloading ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
17-it-generator ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
18-context-mngr ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
19-coroutine ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
20-concurrency ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
21-futures ch22: examples 2021-02-28 21:19:40 -03:00
22-asyncio ch22: examples 2021-02-28 21:45:34 -03:00
23-dyn-attr-prop ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
24-descriptor ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
.gitignore updated files from Atlas 2020-03-11 18:50:06 -03:00
LICENSE ch11-24: clean up by @eumiro & sync with Atlas 2021-02-14 20:58:46 -03:00
README.md Update README.md 2021-02-12 23:34:26 -03:00

Fluent Python 2e example code

Example code for the book Fluent Python, 2nd edition by Luciano Ramalho (OReilly, 2020).

BEWARE: This is a work in progress!

  • Code here may change and disappear without warning.

  • Major reorganizations may happen at any time.

  • No promises. No guarantees. Use at own risk.

Table of Contents

All chapters are undergoing review and updates, including significant rewrites in the chapters about concurrency in Part V.

New chapters in Fluent Python 2e are marked with 🆕.

🚨 This table of contents is subject to change at any time until the book goes to the printer.

Part / Chapter # Title Directory Notebook 1st ed. Chapter #
I Prologue
1 The Python Data Model 01-data-model data-model.ipynb 1
II Data Structures
2 An Array of Sequences 02-array-seq array-seq.ipynb 2
3 Dictionaries and Sets 03-dict-set 3
4 Text versus Bytes 04-text-byte 4
🆕 5 Record-like Data Structures 05-record-like
III Functions as Objects
6 First-Class Funcions 06-1class-func 5
7 Design Patterns with First-Class Functions 07-dp-1class-func 6
8 Function Decorators and Closures 08-closure-deco 7
🆕 9 Type Hints in Function Definitions 09-def-type-hints
IV Object-Oriented Idioms
10 Object References, Mutability, and Recycling 10-obj-ref 8
11 A Pythonic Object 11-pythonic-obj 9
12 Sequence Hacking, Hashing, and Slicing 12-seq-hacking 10
13 Interfaces: From Protocols to ABCs 13-iface-abc 11
14 Inheritance: For Good or For Worse 14-inheritance 12
🆕 15 More About Type Hints 15-type-hints
16 Operator Overloading: Doing It Right 16-op-overloading 13
V Control Flow
17 Iterables, Iterators, and Generators 17-it-generator 14
18 Context Managers and else Blocks 18-context-mngr 15
19 Coroutines 19-coroutine 16
🆕 20 Concurrency Models in Python 20-concurrency -
21 Concurrency with Futures 21-futures 17
22 Concurrency with asyncio 22-asyncio 18
VI Metaprogramming
23 Dynamic Attributes and Properties 22-dyn-attr-prop 19
24 Attribute Descriptors 23-descriptor 20
25 Class Metaprogramming 24-class-metaprog 21