Learning Python - Mark Lutz [627]
attribute references, Attribute Reference: __getattr__ and __setattr__, Emulating Privacy for Instance Attributes: Part 1, Emulating Privacy for Instance Attributes: Part 1
attribute privacy, Emulating Privacy for Instance Attributes: Part 1
Boolean tests, Boolean Tests: __bool__ and __len__
call expressions, Call Expressions: __call__, Function Interfaces and Callback-Based Code, Function Interfaces and Callback-Based Code
function interfaces, Function Interfaces and Callback-Based Code
common operator overloading methods, Common Operator Overloading Methods
comparisons, Comparisons: __lt__, __gt__, and Others
constructors and expressions, Constructors and Expressions: __init__ and __sub__
index iteration, Index Iteration: __getitem__
indexing and slicing, Indexing and Slicing: __getitem__ and __setitem__, Intercepting Slices, Intercepting Slices
Python 2.6, Intercepting Slices
iterator objects, Iterator Objects: __iter__ and __next__, User-Defined Iterators, Multiple Iterators on One Object
multiple iterators on one object, Multiple Iterators on One Object
user defined iterators, User-Defined Iterators
justification, Why Use Operator Overloading?
membership, Membership: __contains__, __iter__, and __getitem__, Membership: __contains__, __iter__, and __getitem__
comparisons, Python 2.6, Membership: __contains__, __iter__, and __getitem__
object destruction, Object Destruction: __del__
overloading methods, Increasing Levels of Magic
overloading methods in Python 2.6, OOP and Delegation: “Wrapper” Objects
overview, The Basics, Common Operator Overloading Methods
right-side and in-place addition, Right-Side and In-Place Addition: __radd__ and __iadd__, In-Place Addition
string representation, String Representation: __repr__ and __str__, String Representation: __repr__ and __str__
operator precedence, Mixed operators follow operator precedence
optimization, Development Tools for Larger Projects
ORMs (object-relational mappers), Future Directions
OverflowError class, Built-in Exception Classes
P
package imports, Module Packages, Packages and Search Path Settings, Why Use Package Imports?, A Tale of Three Systems, A Tale of Three Systems, A Tale of Three Systems
justification, Why Use Package Imports?, A Tale of Three Systems, A Tale of Three Systems, A Tale of Three Systems
import versus from, A Tale of Three Systems
root directory, A Tale of Three Systems
packages and search path settings, Packages and Search Path Settings
package relative imports, Package Relative Imports, Imports are still relative to the CWD (again), Changes in Python 3.0, Relative Import Basics, Relative Import Basics, Why Relative Imports?, The relative imports solution in 3.0, Relative imports versus absolute package paths, The Scope of Relative Imports, Module Lookup Rules Summary, Relative Imports in Action, Imports are still relative to the CWD (again), Imports outside packages, Imports within packages, Imports are still relative to the CWD, Selecting modules with relative and absolute imports, Imports are still relative to the CWD (again)
absolute package paths, versus, Relative imports versus absolute package paths
basics, Relative Import Basics
examples, Relative Imports in Action, Imports are still relative to the CWD (again), Imports outside packages, Imports within packages, Imports are still relative to the CWD, Selecting modules with relative and absolute imports, Imports are still relative