Table of Contents
Fluent Python, 2nd Edition by Luciano Ramalho Index
Return to Fluent Python, 2nd Edition, Python, Python DevOps - Python Data Science - Python MLOps, Python Bibliography
Symbol
- * (star) operator, Emulating Numeric Types, Using * to Grab Excess Items-Unpacking with * in Function Calls and Sequence Literals, Using + and * with Sequences-A += Assignment Puzzler, From Positional to Keyword-Only Parameters, Overloading * for Scalar Multiplication-Overloading * for Scalar Multiplication
- *= (star equals) operator, Augmented Assignment with Sequences-A += Assignment Puzzler, Augmented Assignment Operators-Augmented Assignment Operators
- + operator, Emulating Numeric Types, Using + and * with Sequences-A += Assignment Puzzler, Overloading + for Vector Addition-Overloading + for Vector Addition
- += (addition assignment) operator, Augmented Assignment with Sequences-A += Assignment Puzzler, Augmented Assignment Operators-Augmented Assignment Operators
- __ (double underscore), The Python Data Model
- __format__ (dunder format), Object Representations, Formatted Displays, Vector Take #5: Formatting-Vector Take #5: Formatting, Further Reading
- __getattr__, (dunder getattr) Vector Take #3: Dynamic Attribute Access-Vector Take #3: Dynamic Attribute Access, Special Methods for Attribute Handling
- __getitem__ (dunder getitem), A Pythonic Card Deck-A Pythonic Card Deck, Multidimensional Slicing and Ellipsis, Vector Take #2: A Sliceable Sequence-A Slice-Aware __getitem__
- __init__ (dunder init), How Special Methods Are Used, Post-init Processing, Vector Take #1: Vector2d Compatible
- __len__ (dunder len), A Pythonic Card Deck-A Pythonic Card Deck, Why len Is Not a Method, Vector Take #2: A Sliceable Sequence-A Slice-Aware __getitem__
- __missing__ (dunder missing), The __missing__ Method-Inconsistent Usage of __missing__ in the Standard Library
- __slots__ (dunder slots), Saving Memory with __slots__-Summarizing the Issues with __slots__, Vector Take #3: Dynamic Attribute Access, Special Attributes that Affect Attribute Handling, Why __init_subclass__ Cannot Configure __slots__
A
- addition assignment (+ operator, Augmented Assignment with Sequences-A += Assignment Puzzler, Augmented Assignment Operators-Augmented Assignment Operators
- enhancing asyncio downloader, Enhancing the asyncio Downloader-Making Multiple Requests for Each Download
- topics covered, Asynchronous Programming
- enhancing asyncio downloader, Enhancing the asyncio Downloader-Making Multiple Requests for Each Download
- attribute descriptors (see also attributes; dynamic attributes and properties)attribute validation, Descriptor Example: Attribute Validation-LineItem Take #5: A New Descriptor Type
- overriding versus nonoverriding, Step 5: Caching Properties with functools, Overriding Versus Nonoverriding Descriptors-Overwriting a Descriptor in the Class
- topics covered, Attribute Descriptors
- attributes (see also attribute descriptors; dynamic attributes and properties)dynamic attribute access, Vector Take #3: Dynamic Attribute Access-Vector Take #3: Dynamic Attribute Access
- using attribute descriptors for validation, Descriptor Example: Attribute Validation-LineItem Take #5: A New Descriptor Type
- using properties for attribute validation, Using a Property for Attribute Validation-LineItem Take #2: A Validating Property
- averages, computing, Example: Coroutine to Compute a Running Average-Example: Coroutine to Compute a Running Average
B
- byte sequences, How to Discover the Encoding of a Byte Sequence (see also Unicode text versus bytes)
C
- callable objects nine types of, The Nine Flavors of Callable Objects-The Nine Flavors of Callable Objects
- chain generator, Reinventing chain
- enhancing classes with class decorators, Enhancing Classes with a Class Decorator-Enhancing Classes with a Class Decorator
- import time versus runtime, What Happens When: Import Time Versus Runtime-Evaluation Time Experiments
- __prepare__ method (dunder prepare), A Metaclass Hack with __prepare__-A Metaclass Hack with __prepare__
- computed propertiescaching properties with functools, Step 5: Caching Properties with functools-Step 5: Caching Properties with functools
- Soapbox discussion, Concurrency and Scalability Beyond Python-Concurrency and Scalability Beyond Python
- topics covered, Concurrency Models in Python
- downloads with progress display and error handling, Downloads with Progress Display and Error Handling-Using futures.as_completed
- creative uses for, Context Managers and with Blocks
- contravariance (see variance)
- control flow, How the Book Is Organized (see also asynchronous programming; concurrent executors; concurrency models; iterators; generators; with, match, and else blocks)
- copiesdeep, Deep and Shallow Copies of Arbitrary Objects-Deep and Shallow Copies of Arbitrary Objects
- generator-based, A Few Definitions
- types of, A Few Definitions
- understanding classic, Classic Coroutines
- covariance (see variance)
D
- data attributes (see attributes)
- data class builders@dataclass, More About @dataclass-@dataclass Example: Dublin Core Resource Record
- topics covered, Data Class Builders
- data descriptors (see overriding descriptors)
- data model (see Python Data Model)
- data structures, How the Book Is Organized (see also data class builders; dictionaries and sets; object references; sequences; Unicode text versus bytes)
- definition of, Character Issues
- enhancing classes with class decorators, Enhancing Classes with a Class Decorator-Enhancing Classes with a Class Decorator
- deep copies, Deep and Shallow Copies of Arbitrary Objects-Deep and Shallow Copies of Arbitrary Objects
- diacritics, normalization and, Extreme “Normalization”: Taking Out Diacritics-Extreme “Normalization”: Taking Out Diacritics
- topics covered, Dictionaries and Sets
- ellipsis in, A Pythonic Card Deck
- double underscore (__), The Python Data Model
- duck typing, Overview of Common Mapping Methods, Types Are Defined by Supported Operations, Further Reading, Protocols and Duck Typing, Further Reading, Interfaces, Protocols, and ABCs, Runtime Checkable Static Protocols
- data wrangling with dynamic attributes, Data Wrangling with Dynamic Attributes-Flexible Object Creation with __new__
- essential attributes and functions for attribute handling, Essential Attributes and Functions for Attribute Handling-Special Methods for Attribute Handling
- using properties for attribute validation, Using a Property for Attribute Validation-LineItem Take #2: A Validating Property
E
- increasing issues with, Further Reading
- definition of, Character Issues
- error handling, in network I/O, Downloads with Progress Display and Error Handling-Using futures.as_completed
- executors, delegating tasks to, Delegating Tasks to Executors-Delegating Tasks to Executors (see also concurrent executors)
F
- fail-fast philosophy, Inserting or Updating Mutable Values, Vector Take #4: Hashing and a Faster ==, Defensive Programming and “Fail Fast”-Defensive Programming and “Fail Fast”
- filter function, Listcomps Versus map and filter, Higher-Order Functions-Modern Replacements for map, filter, and reduce
- with Python, Further Reading
- functions, as first-class objects (see also decorators and closures)anonymous functions, Anonymous Functions
- flexible parameter handling and, From Positional to Keyword-Only Parameters-Positional-Only Parameters
- functions, type hints inannotating positional only and variadic parameters, Annotating Positional Only and Variadic Parameters
- functools modulecaching properties with, Step 5: Caching Properties with functools-Step 5: Caching Properties with functools
- freezing arguments with, Freezing Arguments with functools.partial-Freezing Arguments with functools.partial
G
- generator expressions (genexps), List Comprehensions and Readability, Generator Expressions, Modern Replacements for map, filter, and reduce, When to Use Generator Expressions, Async Comprehensions and Async Generator Expressions-Asynchronous comprehensions
- generatorsarithmetic progression generators, An Arithmetic Progression Generator-Arithmetic Progression with itertools
- generator-based coroutines, A Few Definitions
- overview of, Goose Typing
- gradual type system (see also type hints (type annotations))abstract base classes, Abstract Base Classes-The fall of the numeric tower
- parameterized generics and TypeVar, Parameterized Generics and TypeVar-The AnyStr predefined type variable
- subtype-of versus consistent-with relationships, Subtype-of versus consistent-with-Subtype-of versus consistent-with
H
I
- import time versus runtime, When Python Executes Decorators, What Happens When: Import Time Versus Runtime
- infix operators, Operator Overloading, Using @ as an Infix Operator-Wrapping-Up Arithmetic Operators
- inheritance and subclassingbest practices, Coping with Inheritance-Tkinter: The Good, the Bad, and the Ugly
- subclassing built-in types, Subclassing Built-In Types Is Tricky-Subclassing Built-In Types Is Tricky
J
K
- keysautomatic handling of missing, Automatic Handling of Missing Keys-Inconsistent Usage of __missing__ (dunder missing) in the Standard Library
- yield keyword, The Nine Flavors of Callable Objects, Don’t Make the Iterable an Iterator for Itself-How a Generator Works, When to Use Generator Expressions, Classic Coroutines, Example: Coroutine to Compute a Running Average, Using @contextmanager
L
- pattern matching in, Pattern Matching Sequences in an Interpreter-Shortcut syntax for function definition
- Procedure class, Procedure: A Class Implementing a Closure-Procedure: A Class Implementing a Closure
- versus generator expressions, Generator Expressions
- versus map and filter functions, Listcomps Versus map and filter, Modern Replacements for map, filter, and reduce
- mixed-bag, Further Reading
- LRU (see Least Recently Used)
M
- map function, Listcomps Versus map and filter, Higher-Order Functions-Modern Replacements for map, filter, and reduce
- mappingsautomatic handling of missing keys, Automatic Handling of Missing Keys-Inconsistent Usage of __missing__ (dunder missing) in the Standard Library
- memory, saving with __slots__ (dunder slots), Saving Memory with __slots__-Summarizing the Issues with __slots__
- useful applications of, Wrapping Up
- metaprogramming, How the Book Is Organized (see also attribute descriptors; class metaprogramming; dynamic attributes and properties)
- methods, as callable objects, The Nine Flavors of Callable Objects (see also sequences, special methods for; special methods)
- monkey-patching, Monkey Patching]]: Implementing a Protocol at Runtime-Monkey Patching]]: Implementing a Protocol at Runtime, Further Reading, Overwriting a Descriptor in the Class
- multiple inheritance (see also inheritance and subclassing)method resolution order and, Multiple Inheritance and Method Resolution Order-Multiple Inheritance and Method Resolution Order
- multiplication, scalar, Emulating Numeric Types, Overloading * for Scalar Multiplication-Overloading * for Scalar Multiplication
- mutable parameters, Mutable Types as Parameter Defaults: Bad Idea-Defensive Programming with Mutable Parameters
N
- downloads with progress display and error handling, Downloads with Progress Display and Error Handling-Using futures.as_completed
- enhancing asyncio downloader, Enhancing the asyncio Downloader-Making Multiple Requests for Each Download
- nonoverriding descriptors, Step 5: Caching Properties with functools, Overriding Versus Nonoverriding Descriptors-Overwriting a Descriptor in the Class
- normalized text matching, Utility Functions for Normalized Text Matching-Extreme “Normalization”: Taking Out Diacritics
O
- deep copies, Deep and Shallow Copies of Arbitrary Objects-Deep and Shallow Copies of Arbitrary Objects
- function parameters as references, Function Parameters as References-Defensive Programming with Mutable Parameters
- objectscallable objects, The Nine Flavors of Callable Objects-The Nine Flavors of Callable Objects, Using iter with a Callable-Using iter with a Callable
- basics of, Operator Overloading 101
- overloading * for scalar multiplication, Overloading * for Scalar Multiplication-Overloading * for Scalar Multiplication
- overloading + for vector addition, Overloading + for Vector Addition-Overloading + for Vector Addition
- topics covered, Operator Overloading
- overriding descriptors, Step 5: Caching Properties with functools, Properties Override Instance Attributes, Overriding Versus Nonoverriding Descriptors-Overwriting a Descriptor in the Class
P
- parametersannotating positional only and variadic parameters, Annotating Positional Only and Variadic Parameters
- mutable, Mutable Types as Parameter Defaults: Bad Idea-Defensive Programming with Mutable Parameters
- in lis.py interpreter, Pattern Matching Sequences in an Interpreter-Shortcut syntax for function definition, Pattern Matching in lis.py: A Case Study-Using OR-patterns
- protocols (see also interfaces)defensive programming, Defensive Programming and “Fail Fast” - Defensive Programming and “Fail Fast”
- PyICU, Sorting with the Unicode Collation Algorithm
- PyLadies, Afterword
Q
- ==R==
- recycling (see garbage collection)
- reducing functions, Vector Take #4: Hashing and a Faster ==, Iterable Reducing Functions-Iterable Reducing Functions
S
- list comprehensions and generator expressions, List Comprehensions and Generator Expressions-Tuples Are Not Just Immutable Lists
- topics covered, An Array of Sequences
- sequences, special methods forapplications beyond three dimensions, Vector: A User-Defined Sequence Type
- dynamic attribute access, Vector Take #3: Dynamic Attribute Access-Vector Take #3: Dynamic Attribute Access
- sets (see also dictionaries and sets)consequences of how set works, Practical Consequences of How Sets Work
- mixed-bag lists, Further Reading
- threads-and-locks versus actor-style programming, Concurrency and Scalability Beyond Python-Concurrency and Scalability Beyond Python
- trade-offs of built-ins, Further Reading
- Twisted library, Further Reading
- with statements, Further Reading
- calling, How Special Methods Are Used
- purpose of, The Python Data Model
- star (*) operator, Emulating Numeric Types, Using * to Grab Excess Items-Unpacking with * in Function Calls and Sequence Literals, Using + and * with Sequences-A += Assignment Puzzler, From Positional to Keyword-Only Parameters, Overloading * for Scalar Multiplication-Overloading * for Scalar Multiplication
- normalizing Unicode for reliable comparisons, Normalizing Unicode for Reliable Comparisons-Extreme “Normalization”: Taking Out Diacritics
- super() function, Vector Take #3: Dynamic Attribute Access, The super() Function-The super() Function
T
- text files, handling, Handling Text Files-Beware of Encoding Defaults (see also Unicode text versus bytes)
- nature of, Further Reading
- Twisted library, Further Reading
- type hints (type annotations)annotating positional only and variadic parameters, Annotating Positional Only and Variadic Parameters
U
- normalizing Unicode for reliable comparisons, Normalizing Unicode for Reliable Comparisons-Extreme “Normalization”: Taking Out Diacritics
- topics covered, Unicode Text Versus Bytes
- unittest module, Hands-On Approach
- with * in function calls and sequence literals, Unpacking with * in Function Calls and Sequence Literals
V
- variable annotations meaning of, The Meaning of Variable Annotations-Inspecting a class decorated with dataclass
- dynamic attribute access, Vector Take #3: Dynamic Attribute Access-Vector Take #3: Dynamic Attribute Access
- vectorsoverloading + for vector addition, Overloading + for Vector Addition-Overloading + for Vector Addition
==W==
- with, match, and else blockscontext managers and with blocks, Context Managers and with Blocks-Using @contextmanager
Y
- yield keyword, The Nine Flavors of Callable Objects, Don’t Make the Iterable an Iterator for Itself-How a Generator Works, When to Use Generator Expressions, Classic Coroutines, Example: Coroutine to Compute a Running Average, Using @contextmanager
Z
Python: Python Variables, Python Data Types, Python Control Structures, Python Loops, Python Functions, Python Modules, Python Packages, Python File Handling, Python Errors and Exceptions, Python Classes and Objects, Python Inheritance, Python Polymorphism, Python Encapsulation, Python Abstraction, Python Lists, Python Dictionaries, Python Tuples, Python Sets, Python String Manipulation, Python Regular Expressions, Python Comprehensions, Python Lambda Functions, Python Map, Filter, and Reduce, Python Decorators, Python Generators, Python Context Managers, Python Concurrency with Threads, Python Asynchronous Programming, Python Multiprocessing, Python Networking, Python Database Interaction, Python Debugging, Python Testing and Unit Testing, Python Virtual Environments, Python Package Management, Python Data Analysis, Python Data Visualization, Python Web Scraping, Python Web Development with Flask/Django, Python API Interaction, Python GUI Programming, Python Game Development, Python Security and Cryptography, Python Blockchain Programming, Python Machine Learning, Python Deep Learning, Python Natural Language Processing, Python Computer Vision, Python Robotics, Python Scientific Computing, Python Data Engineering, Python Cloud Computing, Python DevOps Tools, Python Performance Optimization, Python Design Patterns, Python Type Hints, Python Version Control with Git, Python Documentation, Python Internationalization and Localization, Python Accessibility, Python Configurations and Environments, Python Continuous Integration/Continuous Deployment, Python Algorithm Design, Python Problem Solving, Python Code Readability, Python Software Architecture, Python Refactoring, Python Integration with Other Languages, Python Microservices Architecture, Python Serverless Computing, Python Big Data Analysis, Python Internet of Things (IoT), Python Geospatial Analysis, Python Quantum Computing, Python Bioinformatics, Python Ethical Hacking, Python Artificial Intelligence, Python Augmented Reality and Virtual Reality, Python Blockchain Applications, Python Chatbots, Python Voice Assistants, Python Edge Computing, Python Graph Algorithms, Python Social Network Analysis, Python Time Series Analysis, Python Image Processing, Python Audio Processing, Python Video Processing, Python 3D Programming, Python Parallel Computing, Python Event-Driven Programming, Python Reactive Programming.
Variables, Data Types, Control Structures, Loops, Functions, Modules, Packages, File Handling, Errors and Exceptions, Classes and Objects, Inheritance, Polymorphism, Encapsulation, Abstraction, Lists, Dictionaries, Tuples, Sets, String Manipulation, Regular Expressions, Comprehensions, Lambda Functions, Map, Filter, and Reduce, Decorators, Generators, Context Managers, Concurrency with Threads, Asynchronous Programming, Multiprocessing, Networking, Database Interaction, Debugging, Testing and Unit Testing, Virtual Environments, Package Management, Data Analysis, Data Visualization, Web Scraping, Web Development with Flask/Django, API Interaction, GUI Programming, Game Development, Security and Cryptography, Blockchain Programming, Machine Learning, Deep Learning, Natural Language Processing, Computer Vision, Robotics, Scientific Computing, Data Engineering, Cloud Computing, DevOps Tools, Performance Optimization, Design Patterns, Type Hints, Version Control with Git, Documentation, Internationalization and Localization, Accessibility, Configurations and Environments, Continuous Integration/Continuous Deployment, Algorithm Design, Problem Solving, Code Readability, Software Architecture, Refactoring, Integration with Other Languages, Microservices Architecture, Serverless Computing, Big Data Analysis, Internet of Things (IoT), Geospatial Analysis, Quantum Computing, Bioinformatics, Ethical Hacking, Artificial Intelligence, Augmented Reality and Virtual Reality, Blockchain Applications, Chatbots, Voice Assistants, Edge Computing, Graph Algorithms, Social Network Analysis, Time Series Analysis, Image Processing, Audio Processing, Video Processing, 3D Programming, Parallel Computing, Event-Driven Programming, Reactive Programming.
Python Glossary, Python Fundamentals, Python Inventor: Python Language Designer: Guido van Rossum on 20 February 1991; PEPs, Python Scripting, Python Keywords, Python Built-In Data Types, Python Data Structures - Python Algorithms, Python Syntax, Python OOP - Python Design Patterns, Python Module Index, pymotw.com, Python Package Manager (pip-PyPI), Python Virtualization (Conda, Miniconda, Virtualenv, Pipenv, Poetry), Python Interpreter, CPython, Python REPL, Python IDEs (PyCharm, Jupyter Notebook), Python Development Tools, Python Linter, Pythonista-Python User, Python Uses, List of Python Software, Python Popularity, Python Compiler, Python Transpiler, Python DevOps - Python SRE, Python Data Science - Python DataOps, Python Machine Learning, Python Deep Learning, Functional Python, Python Concurrency - Python GIL - Python Async (Asyncio), Python Standard Library, Python Testing (Pytest), Python Libraries (Flask), Python Frameworks (Django), Python History, Python Bibliography, Manning Python Series, Python Official Glossary - Python Glossary, Python Topics, Python Courses, Python Research, Python GitHub, Written in Python, Python Awesome List, Python Versions. (navbar_python - see also navbar_python_libaries, navbar_python_standard_library, navbar_python_virtual_environments, navbar_numpy, navbar_datascience)
Fair Use Sources
© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers
SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.