|
Data Structures and Algorithms
with Object-Oriented Design Patterns in Python |
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 monotonicity
.
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.