Copyright © 2005 Shalabh Chaturvedi
About This Book
Explains different Python new-style
objects, starting with <type 'type'> and <type 'object'>, and going all the
way to user defined classes and instances. New-style implies Python
version 2.2 and up. The system described is sometimes called the
Python type system, or the object
model.
This book is part of a series:
Python Types and Objects [you are here]
This revision: 1.13
Links: Latest version
| Other formats
| Discuss
Author: shalabh@cafepy.com
Table of Contents
List of Figures
- 1.1. A Clean Slate
- 1.2. Relationships
- 1.3. Transitivity of Relationships
- 2.1. Chicken and Egg
- 2.2. Some Built-in Types
- 2.3. User Built Objects
- 3.1. The Python Objects Map
List of Examples
- 2.1. Examining
<type 'object'>and<type 'type'> - 2.2. There's more to
<type 'object'>and<type 'type'> - 2.3. Examining some built-in types
- 2.4. Creating new objects by subtyping
- 2.5. Creating new objects by instantiating
- 2.6. Specifying a type object while using
classstatement - 3.1. More built-in types
- 3.2. Examining classic classes