|
Data Structures and Algorithms
with Object-Oriented Design Patterns in Python |
All Python classes
are ultimately derived from the base class called object
.
The object class is defined in the Python __builtin__ module.
The following code fragment identifies some of the methods
defined in the __builtin__.object class
:
class object:
def __new__(...): ...
def __init__(...): ...
def __getattribute__(...): ...
def __setattr__(...): ...
def __delattr__(...): ...
def __hash__(...): ...
def __repr__(...): ...
def __str__(...): ...
...