Learning Python - Mark Lutz [626]
OOP (object-oriented programming), OOP from 30,000 Feet, OOP Is About Code Reuse, Attribute Inheritance Search, Attribute Inheritance Search, Attribute Inheritance Search, Attribute Inheritance Search, Classes and Instances, Classes and Instances, Class Method Calls, Coding Class Trees, Coding Class Trees, OOP Is About Code Reuse, OOP Is About Code Reuse, OOP Is About Code Reuse, Classes Generate Multiple Instance Objects, Classes Generate Multiple Instance Objects, Classes Are Customized by Inheritance, Classes Are Attributes in Modules, OOP: The Big Idea, OOP Is Simpler Than You May Think, Designing with Classes, Overloading by Call Signatures (or Not), OOP and Inheritance: “Is-a” Relationships, OOP and Composition: “Has-a” Relationships, Stream Processors Revisited, OOP and Delegation: “Wrapper” Objects, Pseudoprivate Class Attributes, Why Use Pseudoprivate Attributes?, Methods Are Objects: Bound or Unbound, Bound Methods and Other Callable Objects, Multiple Inheritance: “Mix-in” Classes, Listing attributes per object in class trees, Classes Are Objects: Generic Object Factories
as exemplified by coding of classes, OOP: The Big Idea
attribute inheritance search, Attribute Inheritance Search
class method calls, Class Method Calls
classes, Attribute Inheritance Search, Classes and Instances, Coding Class Trees, Coding Class Trees, Classes Generate Multiple Instance Objects, Classes Are Customized by Inheritance, Classes Are Attributes in Modules
class trees, Coding Class Trees, Coding Class Trees
customization by inheritance, Classes Are Customized by Inheritance, Classes Are Attributes in Modules
code reuse, OOP Is About Code Reuse, OOP Is About Code Reuse
design issues, Designing with Classes, Overloading by Call Signatures (or Not), OOP and Inheritance: “Is-a” Relationships, OOP and Composition: “Has-a” Relationships, Stream Processors Revisited, OOP and Delegation: “Wrapper” Objects, Pseudoprivate Class Attributes, Why Use Pseudoprivate Attributes?, Methods Are Objects: Bound or Unbound, Bound Methods and Other Callable Objects, Multiple Inheritance: “Mix-in” Classes, Listing attributes per object in class trees, Classes Are Objects: Generic Object Factories
bound and unbound methods, Methods Are Objects: Bound or Unbound, Bound Methods and Other Callable Objects
composition, OOP and Composition: “Has-a” Relationships, Stream Processors Revisited
delegation and wrapper classes, OOP and Delegation: “Wrapper” Objects
generic object factories, Classes Are Objects: Generic Object Factories
inheritance, OOP and Inheritance: “Is-a” Relationships
multiple inheritance, Multiple Inheritance: “Mix-in” Classes, Listing attributes per object in class trees
polymorphism, Overloading by Call Signatures (or Not)
pseudoprivate class attributes, Pseudoprivate Class Attributes, Why Use Pseudoprivate Attributes?
design patterns, OOP Is About Code Reuse
important concepts, OOP Is Simpler Than You May Think
instances, Attribute Inheritance Search, Classes and Instances, Classes Generate Multiple Instance Objects
object.attribute expression, Attribute Inheritance Search
open call, (Python 2.6), Coding Unicode Strings in Python 2.6
open function, Files, Other File-Like Tools, Files, Text and Binary Files
mode string argument, Text and Binary Files
operator overloading, Type Categories Revisited, Why Use Classes?, Classes Can Intercept Python Operators, Why Use Operator Overloading?, Why Use Operator Overloading?, Step 3: Operator Overloading, Providing Print Displays, Providing Print Displays, Operator Overloading, Object Destruction: __del__, The Basics, Common Operator Overloading Methods, Constructors and Expressions: __init__ and __sub__, Common Operator Overloading Methods, Indexing and Slicing: __getitem__ and __setitem__, Intercepting Slices, Intercepting Slices, Index Iteration: __getitem__, Iterator Objects: __iter__ and __next__, User-Defined Iterators, Multiple Iterators on One Object, Membership: __contains__, __iter__, and __getitem__, Membership: __contains__, __iter__, and __getitem__,