• Stars
    star
    3,146
  • Rank 14,293 (Top 0.3 %)
  • Language
    Python
  • License
    MIT License
  • Created over 5 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Fluent Python 2e example code

Example code for the book Fluent Python, Second Edition by Luciano Ramalho (O'Reilly, 2022).

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.
Latest change: Old Part Iβ€”Prologue merged into new Part Iβ€”Data Structures; parts renumbered accordingly; chapter numbers unchanged.

Part / Chapter # Title Directory 1st ed. ChapterΒ #
I – Data Structures
1 The Python Data Model 01-data-model 1
2 An Array of Sequences 02-array-seq 2
3 Dictionaries and Sets 03-dict-set 3
4 Unicode Text versus Bytes 04-text-byte 4
5 Data Class Builders 05-data-classes πŸ†•
6 Object References, Mutability, and Recycling 06-obj-ref 8
II – Functions as Objects
7 Funcions as First-Class Objects 07-1class-func 5
8 Type Hints in Functions 08-def-type-hints πŸ†•
9 Decorators and Closures 09-closure-deco 7
10 Design Patterns with First-Class Functions 10-dp-1class-func 6
III – Object-Oriented Idioms
11 A Pythonic Object 11-pythonic-obj 9
12 Special Methods for Sequences 12-seq-hacking 10
13 Interfaces, Protocols, and ABCs 13-protocl-abc 11
14 Inheritance: For Better or For Worse 14-inheritance 12
15 More About Type Hints 15-more-types πŸ†•
16 Operator Overloading 16-op-overloading 13
IV – Control Flow
17 Iterators, Generators, and Classic Coroutines 17-it-generator 14
18 with, match, and else Blocks 18-with-match 15
19 Concurrency Models in Python 19-concurrency πŸ†•
20 Concurrent Executors 20-executors 17
21 Asynchronous Programming 21-async 18
V – Metaprogramming
22 Dynamic Attributes and Properties 22-dyn-attr-prop 19
23 Attribute Descriptors 23-descriptor 20
24 Class Metaprogramming 24-class-metaprog 21

More Repositories

1

example-code

Example code for the book Fluent Python, 1st Edition (O'Reilly, 2015)
Python
5,544
star
2

lispy

Learning with Peter Norvig's lis.py interpreter
Scheme
237
star
3

notebooks

Jupyter Notebooks with Fluent Python examples
Jupyter Notebook
198
star
4

concurrency2017

Example code for the workshop Modern Concurrency in Python
Python
96
star
5

book-site

Companion Web site for Fluent Python, Second Edition
Python
76
star
6

decorators-descriptors

Resources for "Decorators and Descriptors Decoded" PyCon US 2017 Tutorial
Python
72
star
7

asyncio-tkinter

Example of running asyncio on top of the Tcl/Tk event loop via Tkinter
Python
65
star
8

pythonic-api

Examples for "Implementing intuitive and productive APIs" workshops (OSCON, PyCON 2016)
Python
50
star
9

language-creators

Transcripts of "A Language Creators' Conversation: Guido van Rossum, James Gosling, Larry Wall & Anders Hejlsberg"
33
star
10

think-like-a-pythonista

Pense como um Pythonista
Jupyter Notebook
26
star
11

builtins

Talk about built-in callables in Python 3.7+
Jupyter Notebook
18
star
12

unicode-solutions

Unicode Solutions for Python 2 and 3: sample code
Python
17
star
13

generators

Generators: powering iteration in Python
Jupyter Notebook
8
star
14

images

Images used in the Fluent Python book manuscript
4
star
15

experiments

Random experiments
Jupyter Notebook
4
star
16

abacus

Metaprogramming in service of user experience
Python
4
star
17

notes

Notes and references
4
star
18

protocol_examples

A PEP 544 protocol to support type hints for functions that sort
Python
2
star
19

abc-protocol-labs

Experiments with Python Abstract Base Classes and runtime checkable Protocols
Jupyter Notebook
1
star