Online Book Reader

Home Category

Learning Python - Mark Lutz [606]

By Root 1646 0
Generate Multiple Instance Objects, A First Example, Class Objects Provide Default Behavior, Instance Objects Are Concrete Items, Classes Are Customized by Inheritance, Classes Are Customized by Inheritance, Classes Are Attributes in Modules, Classes Can Intercept Python Operators, Why Use Operator Overloading?, The World’s Simplest Python Class, Classes Versus Dictionaries, The World’s Simplest Python Class, Classes Versus Dictionaries, A More Realistic Example, Updating Objects on a Shelve, Step 1: Making Instances, Using Code Two Ways, Step 1: Making Instances, Step 2: Adding Behavior Methods, Coding Methods, Step 3: Operator Overloading, Providing Print Displays, Step 4: Customizing Behavior by Subclassing, OOP: The Big Idea, Step 5: Customizing Constructors, Too, Other Ways to Combine Classes, OOP Is Simpler Than You May Think, Other Ways to Combine Classes, Step 6: Using Introspection Tools, Our Classes’ Final Form, Step 7 (Final): Storing Objects in a Database, Updating Objects on a Shelve, The class Statement, Example, Methods, Other Method Call Possibilities, Inheritance, Python 2.6 and 3.0 Abstract Superclasses, Abstract Superclasses, Python 2.6 and 3.0 Abstract Superclasses, Namespaces: The Whole Story, Namespace Links, Documentation Strings Revisited, Classes Versus Modules, Stream Processors Revisited, Extending Built-in Types, Extending Types by Subclassing, Extending Types by Embedding, Extending Types by Subclassing, Extending Types by Subclassing, The “New-Style” Class Model, Metaclasses, The “New-Style” Class Model, New-Style Class Changes, Scope of search order change, Type Model Changes, Metaclasses, Static and Class Methods, Static and Class Methods, Decorators and Metaclasses: Part 1, For More Details, Class Decorators and Metaclasses, Class Decorators and Metaclasses, Class Gotchas, Changing Class Attributes Can Have Side Effects, Changing Mutable Class Attributes Can Have Side Effects, Too, Multiple Inheritance: Order Matters, Methods, Classes, and Nested Scopes, Delegation-Based Classes in 3.0: __getattr__ and built-ins, “Overwrapping-itis”, Exception Objects

abstract superclasses, Abstract Superclasses, Python 2.6 and 3.0 Abstract Superclasses

as attributes of modules, Classes Are Attributes in Modules

built-in types, extending, Extending Built-in Types, Extending Types by Subclassing, Extending Types by Embedding, Extending Types by Subclassing, Extending Types by Subclassing

embedding, Extending Types by Embedding

subclassing, Extending Types by Subclassing, Extending Types by Subclassing

class decorators, Class Decorators and Metaclasses

class hierarchies, Classes Are Customized by Inheritance

class instances, Instance Objects Are Concrete Items

class method calls, Class Method Calls

class methods, Static and Class Methods (see class methods)

class statements, Coding Class Trees, Coding Class Trees

class trees, Attribute Inheritance Search, Coding Class Trees, Coding Class Trees

classic classes, The “New-Style” Class Model

coding, A More Realistic Example, Updating Objects on a Shelve, Step 1: Making Instances, Using Code Two Ways, Step 2: Adding Behavior Methods, Coding Methods, Step 3: Operator Overloading, Providing Print Displays, Step 4: Customizing Behavior by Subclassing, OOP: The Big Idea, Step 5: Customizing Constructors, Too, Other Ways to Combine Classes, OOP Is Simpler Than You May Think, Other Ways to Combine Classes, Step 6: Using Introspection Tools, Our Classes’ Final Form, Step 7 (Final): Storing Objects in a Database, Updating Objects on a Shelve, The class Statement, Example, Methods, Other Method Call Possibilities, Inheritance, Python 2.6 and 3.0 Abstract Superclasses, Namespaces: The Whole Story, Namespace Links, Documentation Strings Revisited, Classes Versus Modules

behavior methods, Step 2: Adding Behavior Methods

class statement, The class Statement, Example

composition, delegation, and embedding, Other Ways to Combine Classes

constructors, customizing, Step 5: Customizing Constructors, Too, Other Ways to Combine Classes

databases, storing objects

Return Main Page Previous Page Next Page

®Online Book Reader