Skip to content

Example code for Fluent Python, 2nd edition (O'Reilly, 2021)

License

Notifications You must be signed in to change notification settings

abannie/example-code-2e

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Repository files navigation

Fluent Python 2e example code

Example code for the book Fluent Python, 2nd edition by Luciano Ramalho (O'Reilly, 2021).

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 #TitleDirectoryNotebook1st ed. Chapter #
I – Prologue
1The Python Data Model01-data-modeldata-model.ipynb1
II – Data Structures
2An Array of Sequences02-array-seqarray-seq.ipynb2
3Dictionaries and Sets03-dict-set3
4Text versus Bytes04-text-byte4
🆕 5Record-like Data Structures05-record-like
6Object References, Mutability, and Recycling06-obj-ref8
III – Functions as Objects
7First-Class Funcions07-1class-func5
🆕 8Type Hints in Function Definitions08-def-type-hints
9Function Decorators and Closures09-closure-deco7
10Design Patterns with First-Class Functions10-dp-1class-func6
IV – Object-Oriented Idioms
11A Pythonic Object11-pythonic-obj9
12Sequence Hacking, Hashing, and Slicing12-seq-hacking10
13Interfaces, Protocols, and ABCs13-protocl-abc11
14Inheritance: For Good or For Worse14-inheritance12
🆕 15More About Type Hints15-more-types
16Operator Overloading: Doing It Right16-op-overloading13
V – Control Flow
17Iterables, Iterators, and Generators17-it-generator14
18Context Managers and else Blocks18-context-mngr15
19Classic Coroutines19-coroutine16
🆕 20Concurrency Models in Python20-concurrency-
21Concurrency with Futures21-futures17
22Asynchronous Programming22-async18
VI – Metaprogramming
23Dynamic Attributes and Properties22-dyn-attr-prop19
24Attribute Descriptors23-descriptor20
25Class Metaprogramming24-class-metaprog21

About

Example code for Fluent Python, 2nd edition (O'Reilly, 2021)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python88.5%
  • Jupyter Notebook11.0%
  • Other0.5%