Skip to content

aambrioso1/Fluent_Python

Repository files navigation

Fluent_Python

Notes on Luciano Ramalho's Fluent Python.

My plan is to go through the book creating a document of notes for each chapter. I will experiment with each code example as I go.

A Pythonic Card Deck
How Special Methods Are Used
  • Emulating Numeric Types
  • String Representation
  • Arithmetic Operators
  • Boolean Value of a Custom Type
Overview of Special Methods
Why len Is Not a Method
Chapter Summary
Further Reading
  1. An Array of Sequences

Overview of Built-In Sequences

List Comprehensions and Generator Expressions
  • List Comprehensions and Readability
  • Listcomps Versus map and filter
  • Cartesian Products
  • Generator Expressions
Tuples Are Not Just Immutable Lists
  • Tuples as Records
  • Tuple Unpacking
  • Nested Tuple Unpacking
  • Named Tuples
  • Tuples as Immutable Lists
Slicing
  • Why Slices and Range Exclude the Last Item
  • Slice Objects
  • Multidimensional Slicing and Ellipsis
  • Assigning to Slices
Using + and * with Sequences
  • Building Lists of Lists
Augmented Assignment with Sequences
  • A += Assignment Puzzler
list.sort and the sorted Built-In Function
Managing Ordered Sequences with bisect
  • Searching with bisect
  • Inserting with bisect.insort
When a List Is Not the Answer
  • Arrays
  • Memory Views
  • NumPy and SciPy
  • Deques and Other Queues
Chapter Summary
Further Reading

Table of Contents

About

Notes on Luciano Ramalho's Fluent Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages