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

Abstract Objects and the __builtin__.object Class

 

All Python classes are ultimately derived from the base class called objectgif. The object class is defined in the Python __builtin__ module. The following code fragment identifies some of the methods defined in the __builtin__.object classgif:

class object:
    def __new__(...): ...
    def __init__(...): ...
    def __getattribute__(...): ...
    def __setattr__(...): ...
    def __delattr__(...): ...
    def __hash__(...): ...
    def __repr__(...): ...
    def __str__(...): ...
    ...




next up previous index

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