Learning Python - Mark Lutz [620]
descriptors validation, Using Descriptors to Validate
properties validation, Using Properties to Validate
__getattribute__, validation with, Using __getattribute__ to Validate
__getattr__, validation with, Using __getattr__ to Validate
coding to run on attribute access, Inserting Code to Run on Attribute Access
comparison of management techniques, Management Techniques Compared
descriptors, Descriptors, How Properties and Descriptors Relate, The Basics, Descriptor method arguments, Read-only descriptors, A First Example, Computed Attributes, Using State Information in Descriptors, How Properties and Descriptors Relate
computed attributes, Computed Attributes
descriptor methods, The Basics
example, A First Example
method arguments, Descriptor method arguments
properties, relation to, How Properties and Descriptors Relate
read-only descriptors, Read-only descriptors
state information, using in, Using State Information in Descriptors
justification, Why Manage Attributes?, Inserting Code to Run on Attribute Access
properties, Properties, Coding Properties with Decorators, A First Example, A First Example, Computed Attributes, Coding Properties with Decorators
computed attributes, Computed Attributes
decorators, coding with, Coding Properties with Decorators
first example, A First Example
new-style object derivation requirement, A First Example
__getattr__ and __getattribute__, __getattr__ and __getattribute__, Delegation-Based Managers Revisited, The Basics, Avoiding loops in attribute interception methods, A First Example, Computed Attributes, __getattr__ and __getattribute__ Compared, Intercepting Built-in Operation Attributes, Delegation-Based Managers Revisited
avoiding loops, Avoiding loops in attribute interception methods
comparison, __getattr__ and __getattribute__ Compared
computed attributes, Computed Attributes
delegation, The Basics
example, A First Example
interception of built-in attributes, Intercepting Built-in Operation Attributes, Delegation-Based Managers Revisited
Manager class, A More Realistic Example, Coding Subclasses
manager functions, The Downside of “Helper” Functions
manual iteration, Manual Iteration: iter and next
manynames.py, The “Zen” of Python Namespaces: Assignments Classify Names
map function, List Iteration and Comprehensions, map equivalence in Python 2.6, Mapping Functions over Sequences: map, Mapping Functions over Sequences: map, List Comprehensions Versus map, Comprehending List Comprehensions
lambda expressions and, Mapping Functions over Sequences: map
list comprehensions and, Comprehending List Comprehensions
list comprehensions, versus, List Comprehensions Versus map
map iterator, The map, zip, and filter Iterators
matching algorithm, Matching algorithm
math module, Numbers, Other Built-in Numeric Tools
example functions, Other Built-in Numeric Tools
mathematical functions, Built-in Numeric Tools
max and min functions, Other Iteration Contexts
mergdexc.py, Unified try Example
metaclass model, The Metaclass Model, Class Statement Protocol, Classes Are Instances of type, Classes Are Instances of type, Metaclasses Are Subclasses of Type, Class Statement Protocol
(see also metaclasses)
class statement protocol, Class Statement Protocol
classes are instances of type, Classes Are Instances of type
metaclasses are subclasses of type, Metaclasses Are Subclasses of Type
metaclasses, Type Model Changes, Metaclasses, Class Decorators and Metaclasses, Metaclasses, The Downside of “Helper” Functions, To Metaclass or Not to Metaclass, To Metaclass or Not to Metaclass, Metaclasses Versus Class Decorators: Round 1, The Metaclass Model, Declaring Metaclasses, Coding Metaclasses, Instances Versus Inheritance, A Basic Metaclass, Customizing Construction and Initialization, Using simple factory functions, Overloading class creation calls with metaclasses, Overloading class creation calls with normal classes, Instances Versus Inheritance, Example: