Giter Site home page Giter Site logo

qilingu / example-code-2e Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fluentpython/example-code-2e

0.0 0.0 0.0 13.28 MB

Example code for Fluent Python, 2nd edition

License: MIT License

Python 86.89% Shell 0.05% Jupyter Notebook 12.40% C 0.14% Java 0.13% HTML 0.39%

example-code-2e's Introduction

Fluent Python 2e example code

Example code for the book Fluent Python, 2nd edition by Luciano Ramalho (O'Reilly, 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 –
6 Object References, Mutability, and Recycling 06-obj-ref 8
III – Functions as Objects
7 First-Class Funcions 07-1class-func 5
πŸ†• 8 Type Hints in Function Definitions 08-def-type-hints –
9 Function Decorators and Closures 09-closure-deco 7
10 Design Patterns with First-Class Functions 10-dp-1class-func 6
IV – Object-Oriented Idioms
11 A Pythonic Object 11-pythonic-obj 9
12 Sequence Hacking, Hashing, and Slicing 12-seq-hacking 10
13 Interfaces: Interfaces, Protocols, and ABCs 13-protocl-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 Classic Coroutines 19-coroutine 16
πŸ†• 20 Concurrency Models in Python 20-concurrency -
21 Concurrency with Futures 21-futures 17
22 Asynchronous Programming 22-async 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

example-code-2e's People

Contributors

ramalho avatar eumiro avatar akay7 avatar anancds avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.