Data Structures and Algorithms with Object-Oriented Design Patterns in Python
next up previous index

New-Style Classes

Python provides two styles of classes -- classic classes and new-style classes. In this book we use Python new-style classes exclusively. New-style classes support property attributes and provide a method resolution order that satisfies the constraints of local precedence ordering and monotonicitygif.

All Python all new-style classes are ultimately derived from the built-in class called __builtin__.object. This is how a new-style class is distinguished from a classic class.


next up previous index

Bruno Copyright © 2003, 2004 by Bruno R. Preiss, P.Eng. All rights reserved.