Go to file
2019-04-06 17:21:29 -03:00
01-data-model ch02: created notebook 2019-04-06 11:34:18 -03:00
02-array-seq ch02: created notebook 2019-04-06 11:34:18 -03:00
03-dict-set fixed anomalous backslash in string 2019-03-20 22:05:34 +08:00
04-text-byte added README.rst files from Atlas 2015-04-15 05:20:25 -03:00
05-record-like added chapter map to README 2019-04-06 07:11:08 -03:00
06-1class-func added chapter map to README 2019-04-06 07:11:08 -03:00
07-dp-1class-func added chapter map to README 2019-04-06 07:11:08 -03:00
08-closure-deco added chapter map to README 2019-04-06 07:11:08 -03:00
09-def-type-hints added chapter map to README 2019-04-06 07:11:08 -03:00
10-obj-ref added chapter map to README 2019-04-06 07:11:08 -03:00
11-pythonic-obj added chapter map to README 2019-04-06 07:11:08 -03:00
12-seq-hacking added chapter map to README 2019-04-06 07:11:08 -03:00
13-iface-abc added chapter map to README 2019-04-06 07:11:08 -03:00
14-inheritance added chapter map to README 2019-04-06 07:11:08 -03:00
15-type-hints added chapter map to README 2019-04-06 07:11:08 -03:00
16-op-overloading added chapter map to README 2019-04-06 07:11:08 -03:00
17-futures-py3.7 updated more ch. 17 examples to Python 3.7 2019-01-23 22:19:17 -02:00
17-it-generator added chapter map to README 2019-04-06 07:11:08 -03:00
18-asyncio-py3.7 fixed anomalous backslash in string 2019-03-20 22:05:34 +08:00
18-context-mngr added chapter map to README 2019-04-06 07:11:08 -03:00
19-coroutine added chapter map to README 2019-04-06 07:11:08 -03:00
20-futures added chapter map to README 2019-04-06 07:11:08 -03:00
21-asyncio added chapter map to README 2019-04-06 07:11:08 -03:00
22-dyn-attr-prop added chapter map to README 2019-04-06 07:11:08 -03:00
23-descriptor added chapter map to README 2019-04-06 07:11:08 -03:00
24-class-metaprog added chapter map to README 2019-04-06 07:11:08 -03:00
attic fixed anomalous backslash in string 2019-03-20 22:05:34 +08:00
.gitignore ch01: added Jupyter Notebook 2019-04-06 09:10:01 -03:00
chapter-map.ods added notebook links 2019-04-06 17:21:29 -03:00
LICENSE Added LR name to LICENSE 2014-10-14 14:23:54 -03:00
localfiles.txt added README.rst files from Atlas 2015-04-15 05:20:25 -03:00
README.md added notebook links 2019-04-06 17:21:29 -03:00
update.sh Editing README.rst; adding local utility files 2014-10-14 14:17:28 -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, like the book itself.

  • 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 is in print.

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