Learning Python - Mark Lutz [609]
class decorators, Class Decorators, Supporting multiple instances, Coding Class Decorators, Why Decorators? (Revisited)
coding, Coding Class Decorators, Why Decorators? (Revisited)
decorator arguments, Decorator Arguments, Decorator Arguments Versus Function Annotations
versus function annotations, Decorator Arguments Versus Function Annotations
function decorators, Function Decorators, Supporting method decoration, Coding Function Decorators, Adding Decorator Arguments
coding, Coding Function Decorators, Adding Decorator Arguments
functions and classes, managing, Managing Functions and Classes, Decorators Manage Functions and Classes, Too, Managing Functions and Classes Directly, Example: “Private” and “Public” Attributes, Open Issues, Implementation alternatives: __getattribute__ inserts, call stack inspection
open issues, Open Issues, Implementation alternatives: __getattribute__ inserts, call stack inspection
private and public attributes, Example: “Private” and “Public” Attributes
justification, Why Decorators?
nesting, Decorator Nesting
type testing with, Other Applications: Type Testing (If You Insist!)
using and defining, Using and Defining Decorators
def statement, Python Scope Basics
default exception handler, Default Exception Handler
definitions, Definition, Definition
del statement, Type-Specific Operations
delegation, Other Ways to Combine Classes, Emulating Privacy for Instance Attributes: Part 1, OOP and Delegation: “Wrapper” Objects
descriptor protocol, Inserting Code to Run on Attribute Access
descriptors, Descriptors, How Properties and Descriptors Relate, The Basics, Descriptor method arguments, Descriptor method arguments, Read-only descriptors, Read-only descriptors, Read-only descriptors, How Properties and Descriptors Relate
descriptor methods, The Basics
method arguments, Descriptor method arguments
read-only descriptors, Read-only descriptors
__delete__ method, Read-only descriptors
__get__ method, Descriptor method arguments
__set__ method, Read-only descriptors
__slots__ implementation by, How Properties and Descriptors Relate
design patterns, OOP Is About Code Reuse
destructor method, Object Destruction: __del__
developer community, How Is Python Supported?
development tools, The Python Toolset, Development Tools for Larger Projects, The Python Toolset
Python toolset hierarchy, The Python Toolset
diamond pattern of multiple inheritance trees, Diamond Inheritance Change
dictionaries, Dictionaries, The has_key method is dead: long live in!, Dictionaries, Dictionaries, Basic Dictionary Operations, Changing Dictionaries In-Place, More Dictionary Methods, More Dictionary Methods, More Dictionary Methods, More Dictionary Methods, A Languages Table, Dictionary Usage Notes, Using dictionaries to simulate flexible lists, Using dictionaries for sparse data structures, Avoiding missing-key errors, Using dictionaries as “records”, Other Ways to Make Dictionaries, Dictionary Changes in Python 3.0, Dictionary comprehensions, Dictionary views, Dictionary views and sets, Sorting dictionary keys, Dictionary magnitude comparisons no longer work, The has_key method is dead: long live in!, Python 3.0 Dictionary Comparisons, Classes Versus Dictionaries
basic operations, Basic Dictionary Operations
changing in place, Changing Dictionaries In-Place
classes, versus, Classes Versus Dictionaries
coding of, Dictionaries
common literals and operations, Dictionaries
items method, More Dictionary Methods
languages table example, A Languages Table
pop method, More Dictionary Methods
Python 3.0 comparisons, Python 3.0 Dictionary Comparisons
Python 3.0, changes in, Dictionary Changes in Python 3.0, Dictionary comprehensions, Dictionary views, Dictionary views and sets, Sorting dictionary keys, Dictionary magnitude comparisons no longer work, The has_key method is dead: long live in!
dictionary comprehensions, Dictionary comprehensions
dictionary magnitude comparisons, Dictionary magnitude comparisons no longer work
dictionary views, Dictionary views
dictionary